Package com.google.protobuf.compiler
Class PluginProtos.Version.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<PluginProtos.Version,PluginProtos.Version.Builder>
com.google.protobuf.compiler.PluginProtos.Version.Builder
- All Implemented Interfaces:
PluginProtos.VersionOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
- PluginProtos.Version
public static final class PluginProtos.Version.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<PluginProtos.Version,PluginProtos.Version.Builder>
implements PluginProtos.VersionOrBuilder
The version number of protocol compiler.Protobuf type
google.protobuf.compiler.Version-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionoptional int32 major = 1 [json_name = "major"];optional int32 minor = 2 [json_name = "minor"];optional int32 patch = 3 [json_name = "patch"];A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".intgetMajor()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".setMajor(int value) optional int32 major = 1 [json_name = "major"];setMinor(int value) optional int32 minor = 2 [json_name = "minor"];setPatch(int value) optional int32 patch = 3 [json_name = "patch"];A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".setSuffixBytes(com.google.protobuf.ByteString value) A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2".Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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.
-
setMajor
optional int32 major = 1 [json_name = "major"];- Parameters:
value- The major to set.- Returns:
- This builder for chaining.
-
clearMajor
optional int32 major = 1 [json_name = "major"];- Returns:
- This builder for chaining.
-
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.
-
setMinor
optional int32 minor = 2 [json_name = "minor"];- Parameters:
value- The minor to set.- Returns:
- This builder for chaining.
-
clearMinor
optional int32 minor = 2 [json_name = "minor"];- Returns:
- This builder for chaining.
-
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.
-
setPatch
optional int32 patch = 3 [json_name = "patch"];- Parameters:
value- The patch to set.- Returns:
- This builder for chaining.
-
clearPatch
optional int32 patch = 3 [json_name = "patch"];- Returns:
- This builder for chaining.
-
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.
-
setSuffix
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"];- Parameters:
value- The suffix to set.- Returns:
- This builder for chaining.
-
clearSuffix
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"];- Returns:
- This builder for chaining.
-
setSuffixBytes
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"];- Parameters:
value- The bytes for suffix to set.- Returns:
- This builder for chaining.
-