public final class Version extends GeneratedMessageV3 implements VersionOrBuilder
Version contains structured information about the version of a package.Protobuf type
grafeas.v1.Version| Modifier and Type | Class and Description |
|---|---|
static class |
Version.Builder
Version contains structured information about the version of a package.
|
static class |
Version.VersionKind
Whether this is an ordinary package version or a sentinel MIN/MAX version.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| Modifier and Type | Field and Description |
|---|---|
static int |
EPOCH_FIELD_NUMBER |
static int |
FULL_NAME_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
REVISION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, 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, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int EPOCH_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int FULL_NAME_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public int getEpoch()
Used to correct mistakes in the version numbering scheme.
int32 epoch = 1;getEpoch in interface VersionOrBuilderpublic String getName()
Required only when version kind is NORMAL. The main part of the version name.
string name = 2;getName in interface VersionOrBuilderpublic ByteString getNameBytes()
Required only when version kind is NORMAL. The main part of the version name.
string name = 2;getNameBytes in interface VersionOrBuilderpublic String getRevision()
The iteration of the package build from the above version.
string revision = 3;getRevision in interface VersionOrBuilderpublic ByteString getRevisionBytes()
The iteration of the package build from the above version.
string revision = 3;getRevisionBytes in interface VersionOrBuilderpublic int getKindValue()
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
.grafeas.v1.Version.VersionKind kind = 4;getKindValue in interface VersionOrBuilderpublic Version.VersionKind getKind()
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
.grafeas.v1.Version.VersionKind kind = 4;getKind in interface VersionOrBuilderpublic String getFullName()
Human readable version string. This string is of the form <epoch>:<name>-<revision> and is only set when kind is NORMAL.
string full_name = 5;getFullName in interface VersionOrBuilderpublic ByteString getFullNameBytes()
Human readable version string. This string is of the form <epoch>:<name>-<revision> and is only set when kind is NORMAL.
string full_name = 5;getFullNameBytes in interface VersionOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Version parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Version parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Version parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Version parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Version parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Version parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Version parseFrom(InputStream input) throws IOException
IOExceptionpublic static Version parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Version parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Version parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Version parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static Version parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Version.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Version.Builder newBuilder()
public static Version.Builder newBuilder(Version prototype)
public Version.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Version.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Version getDefaultInstance()
public Parser<Version> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Version getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.