Class ListResourcesResponse.Builder (0.28.0)

public static final class ListResourcesResponse.Builder extends GeneratedMessageV3.Builder<ListResourcesResponse.Builder> implements ListResourcesResponseOrBuilder

A response to a 'ListResources' call. Contains a list of Resources.

Protobuf type google.cloud.config.v1.ListResourcesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllResources(Iterable<? extends Resource> values)

public ListResourcesResponse.Builder addAllResources(Iterable<? extends Resource> values)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.config.v1.Resource>
Returns
Type Description
ListResourcesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListResourcesResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListResourcesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResources(Resource value)

public ListResourcesResponse.Builder addResources(Resource value)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameter
Name Description
value Resource
Returns
Type Description
ListResourcesResponse.Builder

addResources(Resource.Builder builderForValue)

public ListResourcesResponse.Builder addResources(Resource.Builder builderForValue)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameter
Name Description
builderForValue Resource.Builder
Returns
Type Description
ListResourcesResponse.Builder

addResources(int index, Resource value)

public ListResourcesResponse.Builder addResources(int index, Resource value)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameters
Name Description
index int
value Resource
Returns
Type Description
ListResourcesResponse.Builder

addResources(int index, Resource.Builder builderForValue)

public ListResourcesResponse.Builder addResources(int index, Resource.Builder builderForValue)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameters
Name Description
index int
builderForValue Resource.Builder
Returns
Type Description
ListResourcesResponse.Builder

addResourcesBuilder()

public Resource.Builder addResourcesBuilder()

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Returns
Type Description
Resource.Builder

addResourcesBuilder(int index)

public Resource.Builder addResourcesBuilder(int index)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameter
Name Description
index int
Returns
Type Description
Resource.Builder

addUnreachable(String value)

public ListResourcesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListResourcesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListResourcesResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListResourcesResponse.Builder

This builder for chaining.

build()

public ListResourcesResponse build()
Returns
Type Description
ListResourcesResponse

buildPartial()

public ListResourcesResponse buildPartial()
Returns
Type Description
ListResourcesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListResourcesResponse.Builder clearNextPageToken()

A token to request the next page of resources from the 'ListResources' method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Returns
Type Description
ListResourcesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public ListResourcesResponse.Builder clearResources()

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Returns
Type Description
ListResourcesResponse.Builder

clearUnreachable()

public ListResourcesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListResourcesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListResourcesResponse getDefaultInstanceForType()
Returns
Type Description
ListResourcesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token to request the next page of resources from the 'ListResources' method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to request the next page of resources from the 'ListResources' method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getResources(int index)

public Resource getResources(int index)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameter
Name Description
index int
Returns
Type Description
Resource

getResourcesBuilder(int index)

public Resource.Builder getResourcesBuilder(int index)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameter
Name Description
index int
Returns
Type Description
Resource.Builder

getResourcesBuilderList()

public List<Resource.Builder> getResourcesBuilderList()

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Returns
Type Description
List<Builder>

getResourcesCount()

public int getResourcesCount()

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Returns
Type Description
int

getResourcesList()

public List<Resource> getResourcesList()

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Returns
Type Description
List<Resource>

getResourcesOrBuilder(int index)

public ResourceOrBuilder getResourcesOrBuilder(int index)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourceOrBuilder

getResourcesOrBuilderList()

public List<? extends ResourceOrBuilder> getResourcesOrBuilderList()

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Returns
Type Description
List<? extends com.google.cloud.config.v1.ResourceOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListResourcesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResources(int index)

public ListResourcesResponse.Builder removeResources(int index)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ListResourcesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListResourcesResponse.Builder setNextPageToken(String value)

A token to request the next page of resources from the 'ListResources' method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListResourcesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListResourcesResponse.Builder setNextPageTokenBytes(ByteString value)

A token to request the next page of resources from the 'ListResources' method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListResourcesResponse.Builder

This builder for chaining.

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

public ListResourcesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListResourcesResponse.Builder
Overrides

setResources(int index, Resource value)

public ListResourcesResponse.Builder setResources(int index, Resource value)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameters
Name Description
index int
value Resource
Returns
Type Description
ListResourcesResponse.Builder

setResources(int index, Resource.Builder builderForValue)

public ListResourcesResponse.Builder setResources(int index, Resource.Builder builderForValue)

List of [Resources][]s.

repeated .google.cloud.config.v1.Resource resources = 1;

Parameters
Name Description
index int
builderForValue Resource.Builder
Returns
Type Description
ListResourcesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListResourcesResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListResourcesResponse.Builder

This builder for chaining.