Class AliasContext.Builder (2.47.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AliasContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AliasContext.Builder
Overrides

build()

public AliasContext build()
Returns
Type Description
AliasContext

buildPartial()

public AliasContext buildPartial()
Returns
Type Description
AliasContext

clear()

public AliasContext.Builder clear()
Returns
Type Description
AliasContext.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AliasContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AliasContext.Builder
Overrides

clearKind()

public AliasContext.Builder clearKind()

The alias kind.

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

Returns
Type Description
AliasContext.Builder

This builder for chaining.

clearName()

public AliasContext.Builder clearName()

The alias name.

string name = 2;

Returns
Type Description
AliasContext.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AliasContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AliasContext.Builder
Overrides

clone()

public AliasContext.Builder clone()
Returns
Type Description
AliasContext.Builder
Overrides

getDefaultInstanceForType()

public AliasContext getDefaultInstanceForType()
Returns
Type Description
AliasContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKind()

public AliasContext.Kind getKind()

The alias kind.

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

Returns
Type Description
AliasContext.Kind

The kind.

getKindValue()

public int getKindValue()

The alias kind.

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

Returns
Type Description
int

The enum numeric value on the wire for kind.

getName()

public String getName()

The alias name.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The alias name.

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AliasContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AliasContext.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AliasContext.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AliasContext.Builder
Overrides

mergeFrom(AliasContext other)

public AliasContext.Builder mergeFrom(AliasContext other)
Parameter
Name Description
other AliasContext
Returns
Type Description
AliasContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AliasContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AliasContext.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AliasContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AliasContext.Builder
Overrides

setKind(AliasContext.Kind value)

public AliasContext.Builder setKind(AliasContext.Kind value)

The alias kind.

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

Parameter
Name Description
value AliasContext.Kind

The kind to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
AliasContext.Builder

This builder for chaining.

setName(String value)

public AliasContext.Builder setName(String value)

The alias name.

string name = 2;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AliasContext.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AliasContext.Builder setNameBytes(ByteString value)

The alias name.

string name = 2;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AliasContext.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AliasContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AliasContext.Builder
Overrides