Class ListPackagesRequest.Builder (1.2.1)

public static final class ListPackagesRequest.Builder extends GeneratedMessageV3.Builder<ListPackagesRequest.Builder> implements ListPackagesRequestOrBuilder

The request to list packages.

Protobuf type google.devtools.artifactregistry.v1beta2.ListPackagesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPackagesRequest build()
Returns
TypeDescription
ListPackagesRequest

buildPartial()

public ListPackagesRequest buildPartial()
Returns
TypeDescription
ListPackagesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListPackagesRequest.Builder clearPageSize()

The maximum number of packages to return. Maximum page size is 10,000.

int32 page_size = 2;

Returns
TypeDescription
ListPackagesRequest.Builder

This builder for chaining.

clearPageToken()

public ListPackagesRequest.Builder clearPageToken()

The next_page_token value returned from a previous list request, if any.

string page_token = 3;

Returns
TypeDescription
ListPackagesRequest.Builder

This builder for chaining.

clearParent()

public ListPackagesRequest.Builder clearParent()

The name of the parent resource whose packages will be listed.

string parent = 1;

Returns
TypeDescription
ListPackagesRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListPackagesRequest getDefaultInstanceForType()
Returns
TypeDescription
ListPackagesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPageSize()

public int getPageSize()

The maximum number of packages to return. Maximum page size is 10,000.

int32 page_size = 2;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

The next_page_token value returned from a previous list request, if any.

string page_token = 3;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

The next_page_token value returned from a previous list request, if any.

string page_token = 3;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getParent()

public String getParent()

The name of the parent resource whose packages will be listed.

string parent = 1;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The name of the parent resource whose packages will be listed.

string parent = 1;

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPackagesRequest other)

public ListPackagesRequest.Builder mergeFrom(ListPackagesRequest other)
Parameter
NameDescription
otherListPackagesRequest
Returns
TypeDescription
ListPackagesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageSize(int value)

public ListPackagesRequest.Builder setPageSize(int value)

The maximum number of packages to return. Maximum page size is 10,000.

int32 page_size = 2;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
ListPackagesRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListPackagesRequest.Builder setPageToken(String value)

The next_page_token value returned from a previous list request, if any.

string page_token = 3;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
ListPackagesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListPackagesRequest.Builder setPageTokenBytes(ByteString value)

The next_page_token value returned from a previous list request, if any.

string page_token = 3;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
ListPackagesRequest.Builder

This builder for chaining.

setParent(String value)

public ListPackagesRequest.Builder setParent(String value)

The name of the parent resource whose packages will be listed.

string parent = 1;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ListPackagesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListPackagesRequest.Builder setParentBytes(ByteString value)

The name of the parent resource whose packages will be listed.

string parent = 1;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ListPackagesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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