Class GetPackageRequest.Builder (1.2.3)

public static final class GetPackageRequest.Builder extends GeneratedMessageV3.Builder<GetPackageRequest.Builder> implements GetPackageRequestOrBuilder

The request to retrieve a package.

Protobuf type google.devtools.artifactregistry.v1beta2.GetPackageRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetPackageRequest build()
Returns
TypeDescription
GetPackageRequest

buildPartial()

public GetPackageRequest buildPartial()
Returns
TypeDescription
GetPackageRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetPackageRequest.Builder clearName()

The name of the package to retrieve.

string name = 1;

Returns
TypeDescription
GetPackageRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetPackageRequest getDefaultInstanceForType()
Returns
TypeDescription
GetPackageRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the package to retrieve.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the package to retrieve.

string name = 1;

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

public GetPackageRequest.Builder mergeFrom(GetPackageRequest other)
Parameter
NameDescription
otherGetPackageRequest
Returns
TypeDescription
GetPackageRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetPackageRequest.Builder setName(String value)

The name of the package to retrieve.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetPackageRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetPackageRequest.Builder setNameBytes(ByteString value)

The name of the package to retrieve.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetPackageRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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