Interface VersionOrBuilder (2.21.0)

publicinterface VersionOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getEpoch()

publicabstractintgetEpoch()

Used to correct mistakes in the version numbering scheme.

int32 epoch = 1;

Returns
Type Description
int

The epoch.

getKind()

publicabstractVersion.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()

publicabstractintgetKindValue()

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()

publicabstractStringgetName()

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

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

publicabstractByteStringgetNameBytes()

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.

getRevision()

publicabstractStringgetRevision()

The iteration of the package build from the above version.

string revision = 3;

Returns
Type Description
String

The revision.

getRevisionBytes()

publicabstractByteStringgetRevisionBytes()

The iteration of the package build from the above version.

string revision = 3;

Returns
Type Description
ByteString

The bytes for revision.

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.