public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Resource = input.ReadString(); break; } case 18: { if (options_ == null) { Options = new global::Google.Cloud.Iam.V1.GetPolicyOptions(); } input.ReadMessage(Options); break; } } } }
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 10: { Resource = input.ReadString(); break; } case 18: { if (options_ == null) { Options = new global::Google.Cloud.Iam.V1.GetPolicyOptions(); } input.ReadMessage(Options); break; } } } }
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 10: { Resource = input.ReadString(); break; } case 18: { if (options_ == null) { Options = new global::Google.Cloud.Iam.V1.GetPolicyOptions(); } input.ReadMessage(Options); break; } } } #endif }
public void MergeFrom(GetIamPolicyRequest other) { if (other == null) { return; } if (other.Resource.Length != 0) { Resource = other.Resource; } if (other.options_ != null) { if (options_ == null) { Options = new global::Google.Cloud.Iam.V1.GetPolicyOptions(); } Options.MergeFrom(other.Options); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }