Package com.google.protobuf.compiler
Class PluginProtos.Version
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<PluginProtos.Version,PluginProtos.Version.Builder>
com.google.protobuf.compiler.PluginProtos.Version
- All Implemented Interfaces:
PluginProtos.VersionOrBuilder,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder
- Enclosing class:
- PluginProtos
public static final class PluginProtos.Version
extends com.google.protobuf.GeneratedMessageLite<PluginProtos.Version,PluginProtos.Version.Builder>
implements PluginProtos.VersionOrBuilder
The version number of protocol compiler.Protobuf type
google.protobuf.compiler.Version-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe version number of protocol compiler.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static PluginProtos.VersionintgetMajor()optional int32 major = 1 [json_name = "major"];intgetMinor()optional int32 minor = 2 [json_name = "minor"];intgetPatch()optional int32 patch = 3 [json_name = "patch"];A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".com.google.protobuf.ByteStringA suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".booleanhasMajor()optional int32 major = 1 [json_name = "major"];booleanhasMinor()optional int32 minor = 2 [json_name = "minor"];booleanhasPatch()optional int32 patch = 3 [json_name = "patch"];booleanA suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".static PluginProtos.Version.Builderstatic PluginProtos.Version.BuildernewBuilder(PluginProtos.Version prototype) static PluginProtos.VersionparseDelimitedFrom(InputStream input) static PluginProtos.VersionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PluginProtos.VersionparseFrom(byte[] data) static PluginProtos.VersionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PluginProtos.VersionparseFrom(com.google.protobuf.ByteString data) static PluginProtos.VersionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PluginProtos.VersionparseFrom(com.google.protobuf.CodedInputStream input) static PluginProtos.VersionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PluginProtos.VersionparseFrom(InputStream input) static PluginProtos.VersionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PluginProtos.VersionparseFrom(ByteBuffer data) static PluginProtos.VersionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PluginProtos.Version>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
MAJOR_FIELD_NUMBER
public static final int MAJOR_FIELD_NUMBER- See Also:
-
MINOR_FIELD_NUMBER
public static final int MINOR_FIELD_NUMBER- See Also:
-
PATCH_FIELD_NUMBER
public static final int PATCH_FIELD_NUMBER- See Also:
-
SUFFIX_FIELD_NUMBER
public static final int SUFFIX_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasMajor
public boolean hasMajor()optional int32 major = 1 [json_name = "major"];- Specified by:
hasMajorin interfacePluginProtos.VersionOrBuilder- Returns:
- Whether the major field is set.
-
getMajor
public int getMajor()optional int32 major = 1 [json_name = "major"];- Specified by:
getMajorin interfacePluginProtos.VersionOrBuilder- Returns:
- The major.
-
hasMinor
public boolean hasMinor()optional int32 minor = 2 [json_name = "minor"];- Specified by:
hasMinorin interfacePluginProtos.VersionOrBuilder- Returns:
- Whether the minor field is set.
-
getMinor
public int getMinor()optional int32 minor = 2 [json_name = "minor"];- Specified by:
getMinorin interfacePluginProtos.VersionOrBuilder- Returns:
- The minor.
-
hasPatch
public boolean hasPatch()optional int32 patch = 3 [json_name = "patch"];- Specified by:
hasPatchin interfacePluginProtos.VersionOrBuilder- Returns:
- Whether the patch field is set.
-
getPatch
public int getPatch()optional int32 patch = 3 [json_name = "patch"];- Specified by:
getPatchin interfacePluginProtos.VersionOrBuilder- Returns:
- The patch.
-
hasSuffix
public boolean hasSuffix()A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should be empty for mainline stable releases.
optional string suffix = 4 [json_name = "suffix"];- Specified by:
hasSuffixin interfacePluginProtos.VersionOrBuilder- Returns:
- Whether the suffix field is set.
-
getSuffix
A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should be empty for mainline stable releases.
optional string suffix = 4 [json_name = "suffix"];- Specified by:
getSuffixin interfacePluginProtos.VersionOrBuilder- Returns:
- The suffix.
-
getSuffixBytes
public com.google.protobuf.ByteString getSuffixBytes()A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should be empty for mainline stable releases.
optional string suffix = 4 [json_name = "suffix"];- Specified by:
getSuffixBytesin interfacePluginProtos.VersionOrBuilder- Returns:
- The bytes for suffix.
-
parseFrom
public static PluginProtos.Version parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginProtos.Version parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginProtos.Version parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginProtos.Version parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginProtos.Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginProtos.Version parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PluginProtos.Version parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PluginProtos.Version parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PluginProtos.Version parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PluginProtos.Version parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<PluginProtos.Version,PluginProtos.Version.Builder>
-
getDefaultInstance
-
parser
-