public static final class FieldType.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder> implements FieldTypeOrBuilder
tipb.FieldType
Modifier and Type | Method and Description |
---|---|
FieldType.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FieldType |
build() |
FieldType |
buildPartial() |
FieldType.Builder |
clear() |
FieldType.Builder |
clearCharset()
optional string charset = 6 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
clearCollate()
optional int32 collate = 5 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
clearDecimal()
optional int32 decimal = 4 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
FieldType.Builder |
clearFlag()
optional uint32 flag = 2 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
clearFlen()
optional int32 flen = 3 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
FieldType.Builder |
clearTp()
optional int32 tp = 1 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
clone() |
String |
getCharset()
optional string charset = 6 [(.gogoproto.nullable) = false]; |
com.google.protobuf.ByteString |
getCharsetBytes()
optional string charset = 6 [(.gogoproto.nullable) = false]; |
int |
getCollate()
optional int32 collate = 5 [(.gogoproto.nullable) = false]; |
int |
getDecimal()
optional int32 decimal = 4 [(.gogoproto.nullable) = false]; |
FieldType |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getFlag()
optional uint32 flag = 2 [(.gogoproto.nullable) = false]; |
int |
getFlen()
optional int32 flen = 3 [(.gogoproto.nullable) = false]; |
int |
getTp()
optional int32 tp = 1 [(.gogoproto.nullable) = false]; |
boolean |
hasCharset()
optional string charset = 6 [(.gogoproto.nullable) = false]; |
boolean |
hasCollate()
optional int32 collate = 5 [(.gogoproto.nullable) = false]; |
boolean |
hasDecimal()
optional int32 decimal = 4 [(.gogoproto.nullable) = false]; |
boolean |
hasFlag()
optional uint32 flag = 2 [(.gogoproto.nullable) = false]; |
boolean |
hasFlen()
optional int32 flen = 3 [(.gogoproto.nullable) = false]; |
boolean |
hasTp()
optional int32 tp = 1 [(.gogoproto.nullable) = false]; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FieldType.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FieldType.Builder |
mergeFrom(FieldType other) |
FieldType.Builder |
mergeFrom(com.google.protobuf.Message other) |
FieldType.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FieldType.Builder |
setCharset(String value)
optional string charset = 6 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
setCharsetBytes(com.google.protobuf.ByteString value)
optional string charset = 6 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
setCollate(int value)
optional int32 collate = 5 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
setDecimal(int value)
optional int32 decimal = 4 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FieldType.Builder |
setFlag(int value)
optional uint32 flag = 2 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
setFlen(int value)
optional int32 flen = 3 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
FieldType.Builder |
setTp(int value)
optional int32 tp = 1 [(.gogoproto.nullable) = false]; |
FieldType.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public FieldType.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public FieldType getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public FieldType build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public FieldType buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public FieldType.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public FieldType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public FieldType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public FieldType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public FieldType.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public FieldType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public FieldType.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<FieldType.Builder>
public FieldType.Builder mergeFrom(FieldType other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public FieldType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<FieldType.Builder>
IOException
public boolean hasTp()
optional int32 tp = 1 [(.gogoproto.nullable) = false];
hasTp
in interface FieldTypeOrBuilder
public int getTp()
optional int32 tp = 1 [(.gogoproto.nullable) = false];
getTp
in interface FieldTypeOrBuilder
public FieldType.Builder setTp(int value)
optional int32 tp = 1 [(.gogoproto.nullable) = false];
value
- The tp to set.public FieldType.Builder clearTp()
optional int32 tp = 1 [(.gogoproto.nullable) = false];
public boolean hasFlag()
optional uint32 flag = 2 [(.gogoproto.nullable) = false];
hasFlag
in interface FieldTypeOrBuilder
public int getFlag()
optional uint32 flag = 2 [(.gogoproto.nullable) = false];
getFlag
in interface FieldTypeOrBuilder
public FieldType.Builder setFlag(int value)
optional uint32 flag = 2 [(.gogoproto.nullable) = false];
value
- The flag to set.public FieldType.Builder clearFlag()
optional uint32 flag = 2 [(.gogoproto.nullable) = false];
public boolean hasFlen()
optional int32 flen = 3 [(.gogoproto.nullable) = false];
hasFlen
in interface FieldTypeOrBuilder
public int getFlen()
optional int32 flen = 3 [(.gogoproto.nullable) = false];
getFlen
in interface FieldTypeOrBuilder
public FieldType.Builder setFlen(int value)
optional int32 flen = 3 [(.gogoproto.nullable) = false];
value
- The flen to set.public FieldType.Builder clearFlen()
optional int32 flen = 3 [(.gogoproto.nullable) = false];
public boolean hasDecimal()
optional int32 decimal = 4 [(.gogoproto.nullable) = false];
hasDecimal
in interface FieldTypeOrBuilder
public int getDecimal()
optional int32 decimal = 4 [(.gogoproto.nullable) = false];
getDecimal
in interface FieldTypeOrBuilder
public FieldType.Builder setDecimal(int value)
optional int32 decimal = 4 [(.gogoproto.nullable) = false];
value
- The decimal to set.public FieldType.Builder clearDecimal()
optional int32 decimal = 4 [(.gogoproto.nullable) = false];
public boolean hasCollate()
optional int32 collate = 5 [(.gogoproto.nullable) = false];
hasCollate
in interface FieldTypeOrBuilder
public int getCollate()
optional int32 collate = 5 [(.gogoproto.nullable) = false];
getCollate
in interface FieldTypeOrBuilder
public FieldType.Builder setCollate(int value)
optional int32 collate = 5 [(.gogoproto.nullable) = false];
value
- The collate to set.public FieldType.Builder clearCollate()
optional int32 collate = 5 [(.gogoproto.nullable) = false];
public boolean hasCharset()
optional string charset = 6 [(.gogoproto.nullable) = false];
hasCharset
in interface FieldTypeOrBuilder
public String getCharset()
optional string charset = 6 [(.gogoproto.nullable) = false];
getCharset
in interface FieldTypeOrBuilder
public com.google.protobuf.ByteString getCharsetBytes()
optional string charset = 6 [(.gogoproto.nullable) = false];
getCharsetBytes
in interface FieldTypeOrBuilder
public FieldType.Builder setCharset(String value)
optional string charset = 6 [(.gogoproto.nullable) = false];
value
- The charset to set.public FieldType.Builder clearCharset()
optional string charset = 6 [(.gogoproto.nullable) = false];
public FieldType.Builder setCharsetBytes(com.google.protobuf.ByteString value)
optional string charset = 6 [(.gogoproto.nullable) = false];
value
- The bytes for charset to set.public final FieldType.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
public final FieldType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<FieldType.Builder>
Copyright © 2024 PingCAP. All rights reserved.