Esempio n. 1
0
 public void MergeFrom(AugmentedValue other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Kind != 0)
     {
         Kind = other.Kind;
     }
     if (other.array_ != null)
     {
         if (array_ == null)
         {
             array_ = new global::Google.Cloud.Firestore.V1.ArrayValue();
         }
         Array.MergeFrom(other.Array);
     }
     if (other.increment_ != null)
     {
         if (increment_ == null)
         {
             increment_ = new global::Google.Cloud.Firestore.V1.Value();
         }
         Increment.MergeFrom(other.Increment);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 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 88: {
                    kind_ = (global::Google.Cloud.Firestore.SentinelKind)input.ReadEnum();
                    break;
                }

                case 80002: {
                    if (array_ == null)
                    {
                        array_ = new global::Google.Cloud.Firestore.V1.ArrayValue();
                    }
                    input.ReadMessage(array_);
                    break;
                }
                }
            }
        }
Esempio n. 3
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 88: {
                    Kind = (global::Google.Cloud.Firestore.SentinelKind)input.ReadEnum();
                    break;
                }

                case 80002: {
                    if (array_ == null)
                    {
                        Array = new global::Google.Cloud.Firestore.V1.ArrayValue();
                    }
                    input.ReadMessage(Array);
                    break;
                }

                case 80010: {
                    if (increment_ == null)
                    {
                        Increment = new global::Google.Cloud.Firestore.V1.Value();
                    }
                    input.ReadMessage(Increment);
                    break;
                }
                }
            }
    #endif
        }
Esempio n. 4
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 88: {
                    Kind = (global::Google.Cloud.Firestore.SentinelKind)input.ReadEnum();
                    break;
                }

                case 80002: {
                    if (array_ == null)
                    {
                        Array = new global::Google.Cloud.Firestore.V1.ArrayValue();
                    }
                    input.ReadMessage(Array);
                    break;
                }

                case 80010: {
                    if (increment_ == null)
                    {
                        Increment = new global::Google.Cloud.Firestore.V1.Value();
                    }
                    input.ReadMessage(Increment);
                    break;
                }
                }
            }
        }