public void MergeFrom(ValidationCA other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.GrpcEndpoint: if (GrpcEndpoint == null) { GrpcEndpoint = new global::Google.Cloud.NetworkSecurity.V1Beta1.GrpcEndpoint(); } GrpcEndpoint.MergeFrom(other.GrpcEndpoint); break; case TypeOneofCase.CertificateProviderInstance: if (CertificateProviderInstance == null) { CertificateProviderInstance = new global::Google.Cloud.NetworkSecurity.V1Beta1.CertificateProviderInstance(); } CertificateProviderInstance.MergeFrom(other.CertificateProviderInstance); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 18: { global::Google.Cloud.NetworkSecurity.V1Beta1.GrpcEndpoint subBuilder = new global::Google.Cloud.NetworkSecurity.V1Beta1.GrpcEndpoint(); if (typeCase_ == TypeOneofCase.GrpcEndpoint) { subBuilder.MergeFrom(GrpcEndpoint); } input.ReadMessage(subBuilder); GrpcEndpoint = subBuilder; break; } case 26: { global::Google.Cloud.NetworkSecurity.V1Beta1.CertificateProviderInstance subBuilder = new global::Google.Cloud.NetworkSecurity.V1Beta1.CertificateProviderInstance(); if (typeCase_ == TypeOneofCase.CertificateProviderInstance) { subBuilder.MergeFrom(CertificateProviderInstance); } input.ReadMessage(subBuilder); CertificateProviderInstance = subBuilder; break; } } } #endif }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 18: { global::Google.Cloud.NetworkSecurity.V1Beta1.GrpcEndpoint subBuilder = new global::Google.Cloud.NetworkSecurity.V1Beta1.GrpcEndpoint(); if (typeCase_ == TypeOneofCase.GrpcEndpoint) { subBuilder.MergeFrom(GrpcEndpoint); } input.ReadMessage(subBuilder); GrpcEndpoint = subBuilder; break; } case 26: { global::Google.Cloud.NetworkSecurity.V1Beta1.CertificateProviderInstance subBuilder = new global::Google.Cloud.NetworkSecurity.V1Beta1.CertificateProviderInstance(); if (typeCase_ == TypeOneofCase.CertificateProviderInstance) { subBuilder.MergeFrom(CertificateProviderInstance); } input.ReadMessage(subBuilder); CertificateProviderInstance = subBuilder; break; } } } }