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.UnusedPrivateParameter
AbstractMessageLite.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, unknownFields
memoizedSize
memoizedHashCode
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, newInstance, 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
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public int getEpoch()
Used to correct mistakes in the version numbering scheme.
int32 epoch = 1;
getEpoch
in interface VersionOrBuilder
public String getName()
Required only when version kind is NORMAL. The main part of the version name.
string name = 2;
getName
in interface VersionOrBuilder
public ByteString getNameBytes()
Required only when version kind is NORMAL. The main part of the version name.
string name = 2;
getNameBytes
in interface VersionOrBuilder
public String getRevision()
The iteration of the package build from the above version.
string revision = 3;
getRevision
in interface VersionOrBuilder
public ByteString getRevisionBytes()
The iteration of the package build from the above version.
string revision = 3;
getRevisionBytes
in interface VersionOrBuilder
public int getKindValue()
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
.grafeas.v1.Version.VersionKind kind = 4;
getKindValue
in interface VersionOrBuilder
public Version.VersionKind getKind()
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
.grafeas.v1.Version.VersionKind kind = 4;
getKind
in interface VersionOrBuilder
public 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 VersionOrBuilder
public 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 VersionOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Version parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Version parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Version parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Version parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Version parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Version parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Version parseFrom(InputStream input) throws IOException
IOException
public static Version parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Version parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Version parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Version parseFrom(CodedInputStream input) throws IOException
IOException
public static Version parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Version.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Version.Builder newBuilder()
public static Version.Builder newBuilder(Version prototype)
public Version.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Version.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Version getDefaultInstance()
public Parser<Version> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Version getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2019 Google LLC. All rights reserved.