Class Version (2.22.0)

public final class Version extends GeneratedMessageV3 implements VersionOrBuilder

Version contains structured information about the version of a package.

Protobuf type grafeas.v1beta1.package.Version

Implements

VersionOrBuilder

Static Fields

EPOCH_FIELD_NUMBER

public static final int EPOCH_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

REVISION_FIELD_NUMBER

public static final int REVISION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Version getDefaultInstance()
Returns
TypeDescription
Version

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Version.Builder newBuilder()
Returns
TypeDescription
Version.Builder

newBuilder(Version prototype)

public static Version.Builder newBuilder(Version prototype)
Parameter
NameDescription
prototypeVersion
Returns
TypeDescription
Version.Builder

parseDelimitedFrom(InputStream input)

public static Version parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Version
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Version parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Version
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Version parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Version
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Version parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Version
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Version parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Version
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Version parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Version
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Version parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Version
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Version parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Version
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Version parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Version
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Version parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Version
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Version parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Version
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Version parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Version
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Version> parser()
Returns
TypeDescription
Parser<Version>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Version getDefaultInstanceForType()
Returns
TypeDescription
Version

getEpoch()

public int getEpoch()

Used to correct mistakes in the version numbering scheme.

int32 epoch = 1;

Returns
TypeDescription
int

The epoch.

getKind()

public Version.VersionKind getKind()

Required. Distinguishes between sentinel MIN/MAX versions and normal versions.

.grafeas.v1beta1.package.Version.VersionKind kind = 4;

Returns
TypeDescription
Version.VersionKind

The kind.

getKindValue()

public int getKindValue()

Required. Distinguishes between sentinel MIN/MAX versions and normal versions.

.grafeas.v1beta1.package.Version.VersionKind kind = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getName()

public String getName()

Required only when version kind is NORMAL. The main part of the version name.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required only when version kind is NORMAL. The main part of the version name.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Version> getParserForType()
Returns
TypeDescription
Parser<Version>
Overrides

getRevision()

public String getRevision()

The iteration of the package build from the above version.

string revision = 3;

Returns
TypeDescription
String

The revision.

getRevisionBytes()

public ByteString getRevisionBytes()

The iteration of the package build from the above version.

string revision = 3;

Returns
TypeDescription
ByteString

The bytes for revision.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Version.Builder newBuilderForType()
Returns
TypeDescription
Version.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Version.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Version.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Version.Builder toBuilder()
Returns
TypeDescription
Version.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException