Class AliasContext.Builder (2.36.0)

public static final class AliasContext.Builder extends GeneratedMessageV3.Builder<AliasContext.Builder> implements AliasContextOrBuilder

An alias to a repo revision.

Protobuf type grafeas.v1.AliasContext

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AliasContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AliasContext.Builder
Overrides

build()

public AliasContext build()
Returns
TypeDescription
AliasContext

buildPartial()

public AliasContext buildPartial()
Returns
TypeDescription
AliasContext

clear()

public AliasContext.Builder clear()
Returns
TypeDescription
AliasContext.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AliasContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AliasContext.Builder
Overrides

clearKind()

public AliasContext.Builder clearKind()

The alias kind.

.grafeas.v1.AliasContext.Kind kind = 1;

Returns
TypeDescription
AliasContext.Builder

This builder for chaining.

clearName()

public AliasContext.Builder clearName()

The alias name.

string name = 2;

Returns
TypeDescription
AliasContext.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AliasContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AliasContext.Builder
Overrides

clone()

public AliasContext.Builder clone()
Returns
TypeDescription
AliasContext.Builder
Overrides

getDefaultInstanceForType()

public AliasContext getDefaultInstanceForType()
Returns
TypeDescription
AliasContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKind()

public AliasContext.Kind getKind()

The alias kind.

.grafeas.v1.AliasContext.Kind kind = 1;

Returns
TypeDescription
AliasContext.Kind

The kind.

getKindValue()

public int getKindValue()

The alias kind.

.grafeas.v1.AliasContext.Kind kind = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getName()

public String getName()

The alias name.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The alias name.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AliasContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AliasContext.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AliasContext.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AliasContext.Builder
Overrides

mergeFrom(AliasContext other)

public AliasContext.Builder mergeFrom(AliasContext other)
Parameter
NameDescription
otherAliasContext
Returns
TypeDescription
AliasContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AliasContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AliasContext.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AliasContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AliasContext.Builder
Overrides

setKind(AliasContext.Kind value)

public AliasContext.Builder setKind(AliasContext.Kind value)

The alias kind.

.grafeas.v1.AliasContext.Kind kind = 1;

Parameter
NameDescription
valueAliasContext.Kind

The kind to set.

Returns
TypeDescription
AliasContext.Builder

This builder for chaining.

setKindValue(int value)

public AliasContext.Builder setKindValue(int value)

The alias kind.

.grafeas.v1.AliasContext.Kind kind = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for kind to set.

Returns
TypeDescription
AliasContext.Builder

This builder for chaining.

setName(String value)

public AliasContext.Builder setName(String value)

The alias name.

string name = 2;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AliasContext.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AliasContext.Builder setNameBytes(ByteString value)

The alias name.

string name = 2;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AliasContext.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AliasContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AliasContext.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AliasContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AliasContext.Builder
Overrides