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: { Name = input.ReadString(); break; } case 18: { if (indexConfig_ == null) { IndexConfig = new global::Google.Cloud.Firestore.Admin.V1.Field.Types.IndexConfig(); } input.ReadMessage(IndexConfig); 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: { Name = input.ReadString(); break; } case 18: { if (indexConfig_ == null) { IndexConfig = new global::Google.Cloud.Firestore.Admin.V1.Field.Types.IndexConfig(); } input.ReadMessage(IndexConfig); 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: { Name = input.ReadString(); break; } case 18: { if (indexConfig_ == null) { IndexConfig = new global::Google.Cloud.Firestore.Admin.V1.Field.Types.IndexConfig(); } input.ReadMessage(IndexConfig); break; } } } #endif }
public void MergeFrom(Field other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.indexConfig_ != null) { if (indexConfig_ == null) { IndexConfig = new global::Google.Cloud.Firestore.Admin.V1.Field.Types.IndexConfig(); } IndexConfig.MergeFrom(other.IndexConfig); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }