Exemplo n.º 1
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 (dataType_ == null)
                    {
                        DataType = new global::Google.Cloud.Automl.V1Beta1.DataType();
                    }
                    input.ReadMessage(DataType);
                    break;
                }

                case 26: {
                    DisplayName = input.ReadString();
                    break;
                }

                case 34: {
                    if (dataStats_ == null)
                    {
                        DataStats = new global::Google.Cloud.Automl.V1Beta1.DataStats();
                    }
                    input.ReadMessage(DataStats);
                    break;
                }

                case 42: {
                    topCorrelatedColumns_.AddEntriesFrom(input, _repeated_topCorrelatedColumns_codec);
                    break;
                }

                case 50: {
                    Etag = input.ReadString();
                    break;
                }
                }
            }
    #endif
        }
Exemplo n.º 2
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: {
                    TypeCode = (global::Google.Cloud.Automl.V1Beta1.TypeCode)input.ReadEnum();
                    break;
                }

                case 18: {
                    global::Google.Cloud.Automl.V1Beta1.DataType subBuilder = new global::Google.Cloud.Automl.V1Beta1.DataType();
                    if (detailsCase_ == DetailsOneofCase.ListElementType)
                    {
                        subBuilder.MergeFrom(ListElementType);
                    }
                    input.ReadMessage(subBuilder);
                    ListElementType = subBuilder;
                    break;
                }

                case 26: {
                    global::Google.Cloud.Automl.V1Beta1.StructType subBuilder = new global::Google.Cloud.Automl.V1Beta1.StructType();
                    if (detailsCase_ == DetailsOneofCase.StructType)
                    {
                        subBuilder.MergeFrom(StructType);
                    }
                    input.ReadMessage(subBuilder);
                    StructType = subBuilder;
                    break;
                }

                case 32: {
                    Nullable = input.ReadBool();
                    break;
                }

                case 42: {
                    TimeFormat = input.ReadString();
                    break;
                }
                }
            }
    #endif
        }
Exemplo n.º 3
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 (dataType_ == null)
                    {
                        DataType = new global::Google.Cloud.Automl.V1Beta1.DataType();
                    }
                    input.ReadMessage(DataType);
                    break;
                }

                case 26: {
                    DisplayName = input.ReadString();
                    break;
                }

                case 34: {
                    if (dataStats_ == null)
                    {
                        DataStats = new global::Google.Cloud.Automl.V1Beta1.DataStats();
                    }
                    input.ReadMessage(DataStats);
                    break;
                }

                case 42: {
                    topCorrelatedColumns_.AddEntriesFrom(ref input, _repeated_topCorrelatedColumns_codec);
                    break;
                }

                case 50: {
                    Etag = input.ReadString();
                    break;
                }
                }
            }
        }
Exemplo 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 8: {
                    TypeCode = (global::Google.Cloud.Automl.V1Beta1.TypeCode)input.ReadEnum();
                    break;
                }

                case 18: {
                    global::Google.Cloud.Automl.V1Beta1.DataType subBuilder = new global::Google.Cloud.Automl.V1Beta1.DataType();
                    if (detailsCase_ == DetailsOneofCase.ListElementType)
                    {
                        subBuilder.MergeFrom(ListElementType);
                    }
                    input.ReadMessage(subBuilder);
                    ListElementType = subBuilder;
                    break;
                }

                case 26: {
                    global::Google.Cloud.Automl.V1Beta1.StructType subBuilder = new global::Google.Cloud.Automl.V1Beta1.StructType();
                    if (detailsCase_ == DetailsOneofCase.StructType)
                    {
                        subBuilder.MergeFrom(StructType);
                    }
                    input.ReadMessage(subBuilder);
                    StructType = subBuilder;
                    break;
                }

                case 32: {
                    Nullable = input.ReadBool();
                    break;
                }

                case 42: {
                    TimeFormat = input.ReadString();
                    break;
                }
                }
            }
        }
Exemplo n.º 5
0
        public void MergeFrom(DataType other)
        {
            if (other == null)
            {
                return;
            }
            if (other.TypeCode != global::Google.Cloud.Automl.V1Beta1.TypeCode.Unspecified)
            {
                TypeCode = other.TypeCode;
            }
            if (other.Nullable != false)
            {
                Nullable = other.Nullable;
            }
            switch (other.DetailsCase)
            {
            case DetailsOneofCase.ListElementType:
                if (ListElementType == null)
                {
                    ListElementType = new global::Google.Cloud.Automl.V1Beta1.DataType();
                }
                ListElementType.MergeFrom(other.ListElementType);
                break;

            case DetailsOneofCase.StructType:
                if (StructType == null)
                {
                    StructType = new global::Google.Cloud.Automl.V1Beta1.StructType();
                }
                StructType.MergeFrom(other.StructType);
                break;

            case DetailsOneofCase.TimeFormat:
                TimeFormat = other.TimeFormat;
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Exemplo n.º 6
0
 public void MergeFrom(ColumnSpec other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.dataType_ != null)
     {
         if (dataType_ == null)
         {
             DataType = new global::Google.Cloud.Automl.V1Beta1.DataType();
         }
         DataType.MergeFrom(other.DataType);
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.dataStats_ != null)
     {
         if (dataStats_ == null)
         {
             DataStats = new global::Google.Cloud.Automl.V1Beta1.DataStats();
         }
         DataStats.MergeFrom(other.DataStats);
     }
     topCorrelatedColumns_.Add(other.topCorrelatedColumns_);
     if (other.Etag.Length != 0)
     {
         Etag = other.Etag;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }