Class Version (2.17.0)

publicfinalclass VersionextendsGeneratedMessageV3implementsVersionOrBuilder

Version contains structured information about the version of a package.

Protobuf type grafeas.v1beta1.package.Version

Implements

VersionOrBuilder

Inherited Members

Static Fields

EPOCH_FIELD_NUMBER

publicstaticfinalintEPOCH_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

publicstaticfinalintKIND_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

REVISION_FIELD_NUMBER

publicstaticfinalintREVISION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticVersiongetDefaultInstance()
Returns
Type Description
Version

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticVersion.BuildernewBuilder()
Returns
Type Description
Version.Builder

newBuilder(Version prototype)

publicstaticVersion.BuildernewBuilder(Versionprototype)
Parameter
Name Description
prototype Version
Returns
Type Description
Version.Builder

parseDelimitedFrom(InputStream input)

publicstaticVersionparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Version
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVersionparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Version
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticVersionparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Version
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticVersionparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Version
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticVersionparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Version
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticVersionparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Version
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticVersionparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Version
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVersionparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Version
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticVersionparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Version
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVersionparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Version
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticVersionparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Version
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticVersionparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Version
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Version>parser()
Returns
Type Description
Parser<Version>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicVersiongetDefaultInstanceForType()
Returns
Type Description
Version

getEpoch()

publicintgetEpoch()

Used to correct mistakes in the version numbering scheme.

int32 epoch = 1;

Returns
Type Description
int

The epoch.

getKind()

publicVersion.VersionKindgetKind()

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

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

Returns
Type Description
Version.VersionKind

The kind.

getKindValue()

publicintgetKindValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for kind.

getName()

publicStringgetName()

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

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

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

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

publicParser<Version>getParserForType()
Returns
Type Description
Parser<Version>
Overrides

getRevision()

publicStringgetRevision()

The iteration of the package build from the above version.

string revision = 3;

Returns
Type Description
String

The revision.

getRevisionBytes()

publicByteStringgetRevisionBytes()

The iteration of the package build from the above version.

string revision = 3;

Returns
Type Description
ByteString

The bytes for revision.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicVersion.BuildernewBuilderForType()
Returns
Type Description
Version.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedVersion.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Version.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicVersion.BuildertoBuilder()
Returns
Type Description
Version.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.