public static final class TypeProtos.MajorType extends com.google.protobuf.GeneratedMessageV3 implements TypeProtos.MajorTypeOrBuilder
common.MajorType
Modifier and Type | Class and Description |
---|---|
static class |
TypeProtos.MajorType.Builder
Protobuf type
common.MajorType |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
MINOR_TYPE_FIELD_NUMBER |
static int |
MODE_FIELD_NUMBER |
static com.google.protobuf.Parser<TypeProtos.MajorType> |
PARSER
Deprecated.
|
static int |
PRECISION_FIELD_NUMBER |
static int |
SCALE_FIELD_NUMBER |
static int |
SUB_TYPE_FIELD_NUMBER |
static int |
TIMEZONE_FIELD_NUMBER |
static int |
WIDTH_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static TypeProtos.MajorType |
getDefaultInstance() |
TypeProtos.MajorType |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
TypeProtos.MinorType |
getMinorType()
optional .common.MinorType minor_type = 1; |
TypeProtos.DataMode |
getMode()
optional .common.DataMode mode = 2; |
com.google.protobuf.Parser<TypeProtos.MajorType> |
getParserForType() |
int |
getPrecision()
used for decimal types or as optional length for fixed size value
|
int |
getScale()
used for decimal types
|
int |
getSerializedSize() |
TypeProtos.MinorType |
getSubType(int index)
used by Union type
|
int |
getSubTypeCount()
used by Union type
|
List<TypeProtos.MinorType> |
getSubTypeList()
used by Union type
|
int |
getTimeZone()
used by TimeStamp type
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getWidth()
optional int32 width = 3; |
int |
hashCode() |
boolean |
hasMinorType()
optional .common.MinorType minor_type = 1; |
boolean |
hasMode()
optional .common.DataMode mode = 2; |
boolean |
hasPrecision()
used for decimal types or as optional length for fixed size value
|
boolean |
hasScale()
used for decimal types
|
boolean |
hasTimeZone()
used by TimeStamp type
|
boolean |
hasWidth()
optional int32 width = 3; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TypeProtos.MajorType.Builder |
newBuilder() |
static TypeProtos.MajorType.Builder |
newBuilder(TypeProtos.MajorType prototype) |
TypeProtos.MajorType.Builder |
newBuilderForType() |
protected TypeProtos.MajorType.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TypeProtos.MajorType |
parseDelimitedFrom(InputStream input) |
static TypeProtos.MajorType |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TypeProtos.MajorType |
parseFrom(byte[] data) |
static TypeProtos.MajorType |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TypeProtos.MajorType |
parseFrom(ByteBuffer data) |
static TypeProtos.MajorType |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TypeProtos.MajorType |
parseFrom(com.google.protobuf.ByteString data) |
static TypeProtos.MajorType |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TypeProtos.MajorType |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TypeProtos.MajorType |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TypeProtos.MajorType |
parseFrom(InputStream input) |
static TypeProtos.MajorType |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TypeProtos.MajorType> |
parser() |
TypeProtos.MajorType.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int MINOR_TYPE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER
public static final int WIDTH_FIELD_NUMBER
public static final int PRECISION_FIELD_NUMBER
public static final int SCALE_FIELD_NUMBER
public static final int TIMEZONE_FIELD_NUMBER
public static final int SUB_TYPE_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<TypeProtos.MajorType> PARSER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public boolean hasMinorType()
optional .common.MinorType minor_type = 1;
hasMinorType
in interface TypeProtos.MajorTypeOrBuilder
public TypeProtos.MinorType getMinorType()
optional .common.MinorType minor_type = 1;
getMinorType
in interface TypeProtos.MajorTypeOrBuilder
public boolean hasMode()
optional .common.DataMode mode = 2;
hasMode
in interface TypeProtos.MajorTypeOrBuilder
public TypeProtos.DataMode getMode()
optional .common.DataMode mode = 2;
getMode
in interface TypeProtos.MajorTypeOrBuilder
public boolean hasWidth()
optional int32 width = 3;
hasWidth
in interface TypeProtos.MajorTypeOrBuilder
public int getWidth()
optional int32 width = 3;
getWidth
in interface TypeProtos.MajorTypeOrBuilder
public boolean hasPrecision()
used for decimal types or as optional length for fixed size value
optional int32 precision = 4;
hasPrecision
in interface TypeProtos.MajorTypeOrBuilder
public int getPrecision()
used for decimal types or as optional length for fixed size value
optional int32 precision = 4;
getPrecision
in interface TypeProtos.MajorTypeOrBuilder
public boolean hasScale()
used for decimal types
optional int32 scale = 5;
hasScale
in interface TypeProtos.MajorTypeOrBuilder
public int getScale()
used for decimal types
optional int32 scale = 5;
getScale
in interface TypeProtos.MajorTypeOrBuilder
public boolean hasTimeZone()
used by TimeStamp type
optional int32 timeZone = 6;
hasTimeZone
in interface TypeProtos.MajorTypeOrBuilder
public int getTimeZone()
used by TimeStamp type
optional int32 timeZone = 6;
getTimeZone
in interface TypeProtos.MajorTypeOrBuilder
public List<TypeProtos.MinorType> getSubTypeList()
used by Union type
repeated .common.MinorType sub_type = 7;
getSubTypeList
in interface TypeProtos.MajorTypeOrBuilder
public int getSubTypeCount()
used by Union type
repeated .common.MinorType sub_type = 7;
getSubTypeCount
in interface TypeProtos.MajorTypeOrBuilder
public TypeProtos.MinorType getSubType(int index)
used by Union type
repeated .common.MinorType sub_type = 7;
getSubType
in interface TypeProtos.MajorTypeOrBuilder
index
- The index of the element to return.public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static TypeProtos.MajorType parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TypeProtos.MajorType parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TypeProtos.MajorType parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TypeProtos.MajorType parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TypeProtos.MajorType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TypeProtos.MajorType parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TypeProtos.MajorType parseFrom(InputStream input) throws IOException
IOException
public static TypeProtos.MajorType parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TypeProtos.MajorType parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TypeProtos.MajorType parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TypeProtos.MajorType parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TypeProtos.MajorType parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public TypeProtos.MajorType.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TypeProtos.MajorType.Builder newBuilder()
public static TypeProtos.MajorType.Builder newBuilder(TypeProtos.MajorType prototype)
public TypeProtos.MajorType.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TypeProtos.MajorType.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static TypeProtos.MajorType getDefaultInstance()
public static com.google.protobuf.Parser<TypeProtos.MajorType> parser()
public com.google.protobuf.Parser<TypeProtos.MajorType> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public TypeProtos.MajorType getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 1970 The Apache Software Foundation. All rights reserved.