Package io.grafeas.v1
Interface VersionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Version
,Version.Builder
public interface VersionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getEpoch()
Used to correct mistakes in the version numbering scheme.String
getFullName()
Human readable version string.com.google.protobuf.ByteString
getFullNameBytes()
Human readable version string.boolean
getInclusive()
Whether this version is specifying part of an inclusive range.Version.VersionKind
getKind()
Required.int
getKindValue()
Required.String
getName()
Required only when version kind is NORMAL.com.google.protobuf.ByteString
getNameBytes()
Required only when version kind is NORMAL.String
getRevision()
The iteration of the package build from the above version.com.google.protobuf.ByteString
getRevisionBytes()
The iteration of the package build from the above version.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getEpoch
int getEpoch()
Used to correct mistakes in the version numbering scheme.
int32 epoch = 1;
- Returns:
- The epoch.
-
getName
String getName()
Required only when version kind is NORMAL. The main part of the version name.
string name = 2;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Required only when version kind is NORMAL. The main part of the version name.
string name = 2;
- Returns:
- The bytes for name.
-
getRevision
String getRevision()
The iteration of the package build from the above version.
string revision = 3;
- Returns:
- The revision.
-
getRevisionBytes
com.google.protobuf.ByteString getRevisionBytes()
The iteration of the package build from the above version.
string revision = 3;
- Returns:
- The bytes for revision.
-
getInclusive
boolean getInclusive()
Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
bool inclusive = 6;
- Returns:
- The inclusive.
-
getKindValue
int getKindValue()
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
.grafeas.v1.Version.VersionKind kind = 4;
- Returns:
- The enum numeric value on the wire for kind.
-
getKind
Version.VersionKind getKind()
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
.grafeas.v1.Version.VersionKind kind = 4;
- Returns:
- The kind.
-
getFullName
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;
- Returns:
- The fullName.
-
getFullNameBytes
com.google.protobuf.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;
- Returns:
- The bytes for fullName.
-
-