Class ListFilesResponse.Builder (1.20.0)

public static final class ListFilesResponse.Builder extends GeneratedMessageV3.Builder<ListFilesResponse.Builder> implements ListFilesResponseOrBuilder

The response from listing files.

Protobuf type google.devtools.artifactregistry.v1beta2.ListFilesResponse

Static Methods

getDescriptor()

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

Methods

addAllFiles(Iterable<? extends File> values)

public ListFilesResponse.Builder addAllFiles(Iterable<? extends File> values)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.devtools.artifactregistry.v1beta2.File>
Returns
TypeDescription
ListFilesResponse.Builder

addFiles(File value)

public ListFilesResponse.Builder addFiles(File value)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameter
NameDescription
valueFile
Returns
TypeDescription
ListFilesResponse.Builder

addFiles(File.Builder builderForValue)

public ListFilesResponse.Builder addFiles(File.Builder builderForValue)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameter
NameDescription
builderForValueFile.Builder
Returns
TypeDescription
ListFilesResponse.Builder

addFiles(int index, File value)

public ListFilesResponse.Builder addFiles(int index, File value)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameters
NameDescription
indexint
valueFile
Returns
TypeDescription
ListFilesResponse.Builder

addFiles(int index, File.Builder builderForValue)

public ListFilesResponse.Builder addFiles(int index, File.Builder builderForValue)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameters
NameDescription
indexint
builderForValueFile.Builder
Returns
TypeDescription
ListFilesResponse.Builder

addFilesBuilder()

public File.Builder addFilesBuilder()

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Returns
TypeDescription
File.Builder

addFilesBuilder(int index)

public File.Builder addFilesBuilder(int index)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
File.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListFilesResponse build()
Returns
TypeDescription
ListFilesResponse

buildPartial()

public ListFilesResponse buildPartial()
Returns
TypeDescription
ListFilesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFiles()

public ListFilesResponse.Builder clearFiles()

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Returns
TypeDescription
ListFilesResponse.Builder

clearNextPageToken()

public ListFilesResponse.Builder clearNextPageToken()

The token to retrieve the next page of files, or empty if there are no more files to return.

string next_page_token = 2;

Returns
TypeDescription
ListFilesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListFilesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListFilesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFiles(int index)

public File getFiles(int index)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
File

getFilesBuilder(int index)

public File.Builder getFilesBuilder(int index)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
File.Builder

getFilesBuilderList()

public List<File.Builder> getFilesBuilderList()

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Returns
TypeDescription
List<Builder>

getFilesCount()

public int getFilesCount()

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Returns
TypeDescription
int

getFilesList()

public List<File> getFilesList()

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Returns
TypeDescription
List<File>

getFilesOrBuilder(int index)

public FileOrBuilder getFilesOrBuilder(int index)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileOrBuilder

getFilesOrBuilderList()

public List<? extends FileOrBuilder> getFilesOrBuilderList()

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Returns
TypeDescription
List<? extends com.google.devtools.artifactregistry.v1beta2.FileOrBuilder>

getNextPageToken()

public String getNextPageToken()

The token to retrieve the next page of files, or empty if there are no more files to return.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token to retrieve the next page of files, or empty if there are no more files to return.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListFilesResponse other)

public ListFilesResponse.Builder mergeFrom(ListFilesResponse other)
Parameter
NameDescription
otherListFilesResponse
Returns
TypeDescription
ListFilesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFiles(int index)

public ListFilesResponse.Builder removeFiles(int index)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListFilesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFiles(int index, File value)

public ListFilesResponse.Builder setFiles(int index, File value)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameters
NameDescription
indexint
valueFile
Returns
TypeDescription
ListFilesResponse.Builder

setFiles(int index, File.Builder builderForValue)

public ListFilesResponse.Builder setFiles(int index, File.Builder builderForValue)

The files returned.

repeated .google.devtools.artifactregistry.v1beta2.File files = 1;

Parameters
NameDescription
indexint
builderForValueFile.Builder
Returns
TypeDescription
ListFilesResponse.Builder

setNextPageToken(String value)

public ListFilesResponse.Builder setNextPageToken(String value)

The token to retrieve the next page of files, or empty if there are no more files to return.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListFilesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListFilesResponse.Builder setNextPageTokenBytes(ByteString value)

The token to retrieve the next page of files, or empty if there are no more files to return.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListFilesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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