Class ListResourcesResponse.Builder (0.13.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.config.v1.Resource>
Returns
TypeDescription
ListResourcesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListResourcesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListResourcesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueResource
Returns
TypeDescription
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
NameDescription
builderForValueResource.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueResource
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResource.Builder
Returns
TypeDescription
ListResourcesResponse.Builder

addResourcesBuilder()

public Resource.Builder addResourcesBuilder()

List of [Resources][]s.

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

Returns
TypeDescription
Resource.Builder

addResourcesBuilder(int index)

public Resource.Builder addResourcesBuilder(int index)

List of [Resources][]s.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Resource.Builder

addUnreachable(String value)

public ListResourcesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListResourcesResponse.Builder

This builder for chaining.

build()

public ListResourcesResponse build()
Returns
TypeDescription
ListResourcesResponse

buildPartial()

public ListResourcesResponse buildPartial()
Returns
TypeDescription
ListResourcesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListResourcesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListResourcesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public ListResourcesResponse.Builder clearResources()

List of [Resources][]s.

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

Returns
TypeDescription
ListResourcesResponse.Builder

clearUnreachable()

public ListResourcesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListResourcesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListResourcesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListResourcesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Resource

getResourcesBuilder(int index)

public Resource.Builder getResourcesBuilder(int index)

List of [Resources][]s.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Resource.Builder

getResourcesBuilderList()

public List<Resource.Builder> getResourcesBuilderList()

List of [Resources][]s.

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

Returns
TypeDescription
List<Builder>

getResourcesCount()

public int getResourcesCount()

List of [Resources][]s.

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

Returns
TypeDescription
int

getResourcesList()

public List<Resource> getResourcesList()

List of [Resources][]s.

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

Returns
TypeDescription
List<Resource>

getResourcesOrBuilder(int index)

public ResourceOrBuilder getResourcesOrBuilder(int index)

List of [Resources][]s.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceOrBuilder

getResourcesOrBuilderList()

public List<? extends ResourceOrBuilder> getResourcesOrBuilderList()

List of [Resources][]s.

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

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListResourcesResponse other)

public ListResourcesResponse.Builder mergeFrom(ListResourcesResponse other)
Parameter
NameDescription
otherListResourcesResponse
Returns
TypeDescription
ListResourcesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListResourcesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListResourcesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListResourcesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueResource
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResource.Builder
Returns
TypeDescription
ListResourcesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListResourcesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListResourcesResponse.Builder

This builder for chaining.