public static final class Version.Builder extends GeneratedMessageV3.Builder<Version.Builder> implements VersionOrBuilder
Version contains structured information about the version of a package.Protobuf type
grafeas.v1.Version
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Version.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Version.Builder>
public Version getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Version build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Version buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Version.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Version.Builder>
public Version.Builder mergeFrom(Version other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Version.Builder>
public Version.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Version.Builder>
IOException
public int getEpoch()
Used to correct mistakes in the version numbering scheme.
int32 epoch = 1;
getEpoch
in interface VersionOrBuilder
public Version.Builder setEpoch(int value)
Used to correct mistakes in the version numbering scheme.
int32 epoch = 1;
public Version.Builder clearEpoch()
Used to correct mistakes in the version numbering scheme.
int32 epoch = 1;
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 Version.Builder setName(String value)
Required only when version kind is NORMAL. The main part of the version name.
string name = 2;
public Version.Builder clearName()
Required only when version kind is NORMAL. The main part of the version name.
string name = 2;
public Version.Builder setNameBytes(ByteString value)
Required only when version kind is NORMAL. The main part of the version name.
string name = 2;
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 Version.Builder setRevision(String value)
The iteration of the package build from the above version.
string revision = 3;
public Version.Builder clearRevision()
The iteration of the package build from the above version.
string revision = 3;
public Version.Builder setRevisionBytes(ByteString value)
The iteration of the package build from the above version.
string revision = 3;
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.Builder setKindValue(int value)
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
.grafeas.v1.Version.VersionKind kind = 4;
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 Version.Builder setKind(Version.VersionKind value)
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
.grafeas.v1.Version.VersionKind kind = 4;
public Version.Builder clearKind()
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
.grafeas.v1.Version.VersionKind kind = 4;
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 Version.Builder setFullName(String value)
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;
public Version.Builder clearFullName()
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;
public Version.Builder setFullNameBytes(ByteString value)
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;
public final Version.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Version.Builder>
public final Version.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Version.Builder>
Copyright © 2019 Google LLC. All rights reserved.