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: {
                    TypeKind = (global::Google.Cloud.Bigquery.V2.StandardSqlDataType.Types.TypeKind)input.ReadEnum();
                    break;
                }

                case 18: {
                    global::Google.Cloud.Bigquery.V2.StandardSqlDataType subBuilder = new global::Google.Cloud.Bigquery.V2.StandardSqlDataType();
                    if (subTypeCase_ == SubTypeOneofCase.ArrayElementType)
                    {
                        subBuilder.MergeFrom(ArrayElementType);
                    }
                    input.ReadMessage(subBuilder);
                    ArrayElementType = subBuilder;
                    break;
                }

                case 26: {
                    global::Google.Cloud.Bigquery.V2.StandardSqlStructType subBuilder = new global::Google.Cloud.Bigquery.V2.StandardSqlStructType();
                    if (subTypeCase_ == SubTypeOneofCase.StructType)
                    {
                        subBuilder.MergeFrom(StructType);
                    }
                    input.ReadMessage(subBuilder);
                    StructType = subBuilder;
                    break;
                }
                }
            }
    #endif
        }
        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: {
                    TypeKind = (global::Google.Cloud.Bigquery.V2.StandardSqlDataType.Types.TypeKind)input.ReadEnum();
                    break;
                }

                case 18: {
                    global::Google.Cloud.Bigquery.V2.StandardSqlDataType subBuilder = new global::Google.Cloud.Bigquery.V2.StandardSqlDataType();
                    if (subTypeCase_ == SubTypeOneofCase.ArrayElementType)
                    {
                        subBuilder.MergeFrom(ArrayElementType);
                    }
                    input.ReadMessage(subBuilder);
                    ArrayElementType = subBuilder;
                    break;
                }

                case 26: {
                    global::Google.Cloud.Bigquery.V2.StandardSqlStructType subBuilder = new global::Google.Cloud.Bigquery.V2.StandardSqlStructType();
                    if (subTypeCase_ == SubTypeOneofCase.StructType)
                    {
                        subBuilder.MergeFrom(StructType);
                    }
                    input.ReadMessage(subBuilder);
                    StructType = subBuilder;
                    break;
                }
                }
            }
        }