Пример #1
0
                public void MergeFrom(pb::CodedInputStream input)
                {
                    uint tag;

                    while ((tag = input.ReadTag()) != 0)
                    {
                        switch (tag)
                        {
                        default:
                            input.SkipLastField();
                            break;

                        case 10: {
                            Name = input.ReadString();
                            break;
                        }

                        case 18: {
                            if (type_ == null)
                            {
                                type_ = new global::Google.Cloud.Spanner.V1.Type();
                            }
                            input.ReadMessage(type_);
                            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 18: {
                            if (type_ == null)
                            {
                                Type = new global::Google.Cloud.Spanner.V1.Type();
                            }
                            input.ReadMessage(Type);
                            break;
                        }
                        }
                    }
                }
Пример #3
0
 public void MergeFrom(Type other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Code != 0)
     {
         Code = other.Code;
     }
     if (other.arrayElementType_ != null)
     {
         if (arrayElementType_ == null)
         {
             arrayElementType_ = new global::Google.Cloud.Spanner.V1.Type();
         }
         ArrayElementType.MergeFrom(other.ArrayElementType);
     }
     if (other.structType_ != null)
     {
         if (structType_ == null)
         {
             structType_ = new global::Google.Cloud.Spanner.V1.StructType();
         }
         StructType.MergeFrom(other.StructType);
     }
 }
Пример #4
0
 public void MergeFrom(Type other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Code != global::Google.Cloud.Spanner.V1.TypeCode.Unspecified)
     {
         Code = other.Code;
     }
     if (other.arrayElementType_ != null)
     {
         if (arrayElementType_ == null)
         {
             ArrayElementType = new global::Google.Cloud.Spanner.V1.Type();
         }
         ArrayElementType.MergeFrom(other.ArrayElementType);
     }
     if (other.structType_ != null)
     {
         if (structType_ == null)
         {
             StructType = new global::Google.Cloud.Spanner.V1.StructType();
         }
         StructType.MergeFrom(other.StructType);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #5
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 18: {
                            if (type_ == null)
                            {
                                Type = new global::Google.Cloud.Spanner.V1.Type();
                            }
                            input.ReadMessage(Type);
                            break;
                        }
                        }
                    }
                }
Пример #6
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 18: {
                            if (type_ == null)
                            {
                                Type = new global::Google.Cloud.Spanner.V1.Type();
                            }
                            input.ReadMessage(Type);
                            break;
                        }
                        }
                    }
        #endif
                }
Пример #7
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 8: {
                    Code = (global::Google.Cloud.Spanner.V1.TypeCode)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (arrayElementType_ == null)
                    {
                        ArrayElementType = new global::Google.Cloud.Spanner.V1.Type();
                    }
                    input.ReadMessage(ArrayElementType);
                    break;
                }

                case 26: {
                    if (structType_ == null)
                    {
                        StructType = new global::Google.Cloud.Spanner.V1.StructType();
                    }
                    input.ReadMessage(StructType);
                    break;
                }

                case 32: {
                    TypeAnnotation = (global::Google.Cloud.Spanner.V1.TypeAnnotationCode)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
Пример #8
0
 public void MergeFrom(Field other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.type_ != null)
     {
         if (type_ == null)
         {
             type_ = new global::Google.Cloud.Spanner.V1.Type();
         }
         Type.MergeFrom(other.Type);
     }
 }
Пример #9
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 8: {
                    Code = (global::Google.Cloud.Spanner.V1.TypeCode)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (arrayElementType_ == null)
                    {
                        ArrayElementType = new global::Google.Cloud.Spanner.V1.Type();
                    }
                    input.ReadMessage(ArrayElementType);
                    break;
                }

                case 26: {
                    if (structType_ == null)
                    {
                        StructType = new global::Google.Cloud.Spanner.V1.StructType();
                    }
                    input.ReadMessage(StructType);
                    break;
                }

                case 32: {
                    TypeAnnotation = (global::Google.Cloud.Spanner.V1.TypeAnnotationCode)input.ReadEnum();
                    break;
                }
                }
            }
        }
Пример #10
0
 public void MergeFrom(Field other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.type_ != null)
     {
         if (type_ == null)
         {
             Type = new global::Google.Cloud.Spanner.V1.Type();
         }
         Type.MergeFrom(other.Type);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #11
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    code_ = (global::Google.Cloud.Spanner.V1.TypeCode)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (arrayElementType_ == null)
                    {
                        arrayElementType_ = new global::Google.Cloud.Spanner.V1.Type();
                    }
                    input.ReadMessage(arrayElementType_);
                    break;
                }

                case 26: {
                    if (structType_ == null)
                    {
                        structType_ = new global::Google.Cloud.Spanner.V1.StructType();
                    }
                    input.ReadMessage(structType_);
                    break;
                }
                }
            }
        }
Пример #12
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 8: {
                    Code = (global::Google.Cloud.Spanner.V1.TypeCode)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (arrayElementType_ == null)
                    {
                        ArrayElementType = new global::Google.Cloud.Spanner.V1.Type();
                    }
                    input.ReadMessage(ArrayElementType);
                    break;
                }

                case 26: {
                    if (structType_ == null)
                    {
                        StructType = new global::Google.Cloud.Spanner.V1.StructType();
                    }
                    input.ReadMessage(StructType);
                    break;
                }
                }
            }
        }