Class Enum
-
- All Implemented Interfaces:
-
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable,xyz.block.ftl.v1.schema.EnumOrBuilder
public final class Enum extends GeneratedMessageV3 implements EnumOrBuilder
Protobuf type
xyz.block.ftl.v1.schema.Enum
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEnum.BuilderProtobuf type
xyz.block.ftl.v1.schema.Enum
-
Field Summary
Fields Modifier and Type Field Description public final static intPOS_FIELD_NUMBERpublic final static intCOMMENTS_FIELD_NUMBERpublic final static intEXPORT_FIELD_NUMBERpublic final static intNAME_FIELD_NUMBERpublic final static intTYPE_FIELD_NUMBERpublic final static intVARIANTS_FIELD_NUMBER
-
Method Summary
Modifier and Type Method Description final static Descriptors.DescriptorgetDescriptor()booleanhasPos()optional .xyz.block.ftl.v1.schema.Position pos = 1;PositiongetPos()optional .xyz.block.ftl.v1.schema.Position pos = 1;PositionOrBuildergetPosOrBuilder()optional .xyz.block.ftl.v1.schema.Position pos = 1;ProtocolStringListgetCommentsList()repeated string comments = 2;intgetCommentsCount()repeated string comments = 2;StringgetComments(int index)repeated string comments = 2;ByteStringgetCommentsBytes(int index)repeated string comments = 2;booleangetExport()bool export = 3;StringgetName()string name = 4;ByteStringgetNameBytes()string name = 4;booleanhasType()optional .xyz.block.ftl.v1.schema.Type type = 5;TypegetType()optional .xyz.block.ftl.v1.schema.Type type = 5;TypeOrBuildergetTypeOrBuilder()optional .xyz.block.ftl.v1.schema.Type type = 5;List<EnumVariant>getVariantsList()repeated .xyz.block.ftl.v1.schema.EnumVariant variants = 6;List<out EnumVariantOrBuilder>getVariantsOrBuilderList()repeated .xyz.block.ftl.v1.schema.EnumVariant variants = 6;intgetVariantsCount()repeated .xyz.block.ftl.v1.schema.EnumVariant variants = 6;EnumVariantgetVariants(int index)repeated .xyz.block.ftl.v1.schema.EnumVariant variants = 6;EnumVariantOrBuildergetVariantsOrBuilder(int index)repeated .xyz.block.ftl.v1.schema.EnumVariant variants = 6;final booleanisInitialized()voidwriteTo(CodedOutputStream output)intgetSerializedSize()booleanequals(Object obj)inthashCode()static EnumparseFrom(ByteBuffer data)static EnumparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)static EnumparseFrom(ByteString data)static EnumparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static EnumparseFrom(Array<byte> data)static EnumparseFrom(Array<byte> data, ExtensionRegistryLite extensionRegistry)static EnumparseFrom(InputStream input)static EnumparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static EnumparseDelimitedFrom(InputStream input)static EnumparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)static EnumparseFrom(CodedInputStream input)static EnumparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)Enum.BuildernewBuilderForType()static Enum.BuildernewBuilder()static Enum.BuildernewBuilder(Enum prototype)Enum.BuildertoBuilder()static EnumgetDefaultInstance()static Parser<Enum>parser()Parser<Enum>getParserForType()EnumgetDefaultInstanceForType()-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof -
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, toString -
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo -
Methods inherited from class com.google.protobuf.Message
getParserForType -
Methods inherited from class com.google.protobuf.MessageLite
getParserForType -
Methods inherited from class com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDescriptor
final static Descriptors.Descriptor getDescriptor()
-
hasPos
boolean hasPos()
optional .xyz.block.ftl.v1.schema.Position pos = 1;- Returns:
Whether the pos field is set.
-
getPosOrBuilder
PositionOrBuilder getPosOrBuilder()
optional .xyz.block.ftl.v1.schema.Position pos = 1;
-
getCommentsList
ProtocolStringList getCommentsList()
repeated string comments = 2;- Returns:
A list containing the comments.
-
getCommentsCount
int getCommentsCount()
repeated string comments = 2;- Returns:
The count of comments.
-
getComments
String getComments(int index)
repeated string comments = 2;- Parameters:
index- The index of the element to return.- Returns:
The comments at the given index.
-
getCommentsBytes
ByteString getCommentsBytes(int index)
repeated string comments = 2;- Parameters:
index- The index of the value to return.- Returns:
The bytes of the comments at the given index.
-
getExport
boolean getExport()
bool export = 3;- Returns:
The export.
-
getNameBytes
ByteString getNameBytes()
string name = 4;- Returns:
The bytes for name.
-
hasType
boolean hasType()
optional .xyz.block.ftl.v1.schema.Type type = 5;- Returns:
Whether the type field is set.
-
getTypeOrBuilder
TypeOrBuilder getTypeOrBuilder()
optional .xyz.block.ftl.v1.schema.Type type = 5;
-
getVariantsList
List<EnumVariant> getVariantsList()
repeated .xyz.block.ftl.v1.schema.EnumVariant variants = 6;
-
getVariantsOrBuilderList
List<out EnumVariantOrBuilder> getVariantsOrBuilderList()
repeated .xyz.block.ftl.v1.schema.EnumVariant variants = 6;
-
getVariantsCount
int getVariantsCount()
repeated .xyz.block.ftl.v1.schema.EnumVariant variants = 6;
-
getVariants
EnumVariant getVariants(int index)
repeated .xyz.block.ftl.v1.schema.EnumVariant variants = 6;
-
getVariantsOrBuilder
EnumVariantOrBuilder getVariantsOrBuilder(int index)
repeated .xyz.block.ftl.v1.schema.EnumVariant variants = 6;
-
isInitialized
final boolean isInitialized()
-
writeTo
void writeTo(CodedOutputStream output)
-
getSerializedSize
int getSerializedSize()
-
hashCode
int hashCode()
-
parseFrom
static Enum parseFrom(ByteBuffer data)
-
parseFrom
static Enum parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
-
parseFrom
static Enum parseFrom(InputStream input)
-
parseFrom
static Enum parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
-
parseDelimitedFrom
static Enum parseDelimitedFrom(InputStream input)
-
parseDelimitedFrom
static Enum parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
-
newBuilderForType
Enum.Builder newBuilderForType()
-
newBuilder
static Enum.Builder newBuilder()
-
newBuilder
static Enum.Builder newBuilder(Enum prototype)
-
toBuilder
Enum.Builder toBuilder()
-
getDefaultInstance
static Enum getDefaultInstance()
-
getParserForType
Parser<Enum> getParserForType()
-
getDefaultInstanceForType
Enum getDefaultInstanceForType()
-
-
-
-