예제 #1
0
        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 16: {
                    QueryScope = (global::Google.Cloud.Firestore.Admin.V1.Index.Types.QueryScope)input.ReadEnum();
                    break;
                }

                case 26: {
                    fields_.AddEntriesFrom(ref input, _repeated_fields_codec);
                    break;
                }

                case 32: {
                    State = (global::Google.Cloud.Firestore.Admin.V1.Index.Types.State)input.ReadEnum();
                    break;
                }
                }
            }
        }
예제 #2
0
        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 16: {
                    QueryScope = (global::Google.Cloud.Firestore.Admin.V1.Index.Types.QueryScope)input.ReadEnum();
                    break;
                }

                case 26: {
                    fields_.AddEntriesFrom(input, _repeated_fields_codec);
                    break;
                }

                case 32: {
                    State = (global::Google.Cloud.Firestore.Admin.V1.Index.Types.State)input.ReadEnum();
                    break;
                }
                }
            }
        }
예제 #3
0
 public void MergeFrom(Index other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.QueryScope != global::Google.Cloud.Firestore.Admin.V1.Index.Types.QueryScope.Unspecified)
     {
         QueryScope = other.QueryScope;
     }
     fields_.Add(other.fields_);
     if (other.State != global::Google.Cloud.Firestore.Admin.V1.Index.Types.State.Unspecified)
     {
         State = other.State;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #4
0
 public void MergeFrom(Index other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.QueryScope != 0)
     {
         QueryScope = other.QueryScope;
     }
     fields_.Add(other.fields_);
     if (other.State != 0)
     {
         State = other.State;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #5
0
        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 16: {
                    QueryScope = (global::Google.Cloud.Firestore.Admin.V1.Index.Types.QueryScope)input.ReadEnum();
                    break;
                }

                case 26: {
                    fields_.AddEntriesFrom(input, _repeated_fields_codec);
                    break;
                }

                case 32: {
                    State = (global::Google.Cloud.Firestore.Admin.V1.Index.Types.State)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }