Class ListFeaturesResponse.Builder (1.43.0)

public static final class ListFeaturesResponse.Builder extends GeneratedMessageV3.Builder<ListFeaturesResponse.Builder> implements ListFeaturesResponseOrBuilder

Response message for the GkeHub.ListFeatures method.

Protobuf type google.cloud.gkehub.v1beta.ListFeaturesResponse

Static Methods

getDescriptor()

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

Methods

addAllResources(Iterable<? extends Feature> values)

public ListFeaturesResponse.Builder addAllResources(Iterable<? extends Feature> values)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkehub.v1beta.Feature>
Returns
Type Description
ListFeaturesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResources(Feature value)

public ListFeaturesResponse.Builder addResources(Feature value)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameter
Name Description
value Feature
Returns
Type Description
ListFeaturesResponse.Builder

addResources(Feature.Builder builderForValue)

public ListFeaturesResponse.Builder addResources(Feature.Builder builderForValue)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameter
Name Description
builderForValue Feature.Builder
Returns
Type Description
ListFeaturesResponse.Builder

addResources(int index, Feature value)

public ListFeaturesResponse.Builder addResources(int index, Feature value)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameters
Name Description
index int
value Feature
Returns
Type Description
ListFeaturesResponse.Builder

addResources(int index, Feature.Builder builderForValue)

public ListFeaturesResponse.Builder addResources(int index, Feature.Builder builderForValue)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameters
Name Description
index int
builderForValue Feature.Builder
Returns
Type Description
ListFeaturesResponse.Builder

addResourcesBuilder()

public Feature.Builder addResourcesBuilder()

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Returns
Type Description
Feature.Builder

addResourcesBuilder(int index)

public Feature.Builder addResourcesBuilder(int index)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameter
Name Description
index int
Returns
Type Description
Feature.Builder

build()

public ListFeaturesResponse build()
Returns
Type Description
ListFeaturesResponse

buildPartial()

public ListFeaturesResponse buildPartial()
Returns
Type Description
ListFeaturesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListFeaturesResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListFeaturesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public ListFeaturesResponse.Builder clearResources()

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Returns
Type Description
ListFeaturesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListFeaturesResponse getDefaultInstanceForType()
Returns
Type Description
ListFeaturesResponse

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 ListFeatures 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 ListFeatures 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 Feature getResources(int index)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameter
Name Description
index int
Returns
Type Description
Feature

getResourcesBuilder(int index)

public Feature.Builder getResourcesBuilder(int index)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameter
Name Description
index int
Returns
Type Description
Feature.Builder

getResourcesBuilderList()

public List<Feature.Builder> getResourcesBuilderList()

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Returns
Type Description
List<Builder>

getResourcesCount()

public int getResourcesCount()

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Returns
Type Description
int

getResourcesList()

public List<Feature> getResourcesList()

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Returns
Type Description
List<Feature>

getResourcesOrBuilder(int index)

public FeatureOrBuilder getResourcesOrBuilder(int index)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameter
Name Description
index int
Returns
Type Description
FeatureOrBuilder

getResourcesOrBuilderList()

public List<? extends FeatureOrBuilder> getResourcesOrBuilderList()

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Returns
Type Description
List<? extends com.google.cloud.gkehub.v1beta.FeatureOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListFeaturesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResources(int index)

public ListFeaturesResponse.Builder removeResources(int index)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ListFeaturesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListFeaturesResponse.Builder setNextPageToken(String value)

A token to request the next page of resources from the ListFeatures 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
ListFeaturesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListFeaturesResponse.Builder setNextPageTokenBytes(ByteString value)

A token to request the next page of resources from the ListFeatures 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
ListFeaturesResponse.Builder

This builder for chaining.

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

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

setResources(int index, Feature value)

public ListFeaturesResponse.Builder setResources(int index, Feature value)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameters
Name Description
index int
value Feature
Returns
Type Description
ListFeaturesResponse.Builder

setResources(int index, Feature.Builder builderForValue)

public ListFeaturesResponse.Builder setResources(int index, Feature.Builder builderForValue)

The list of matching Features

repeated .google.cloud.gkehub.v1beta.Feature resources = 1;

Parameters
Name Description
index int
builderForValue Feature.Builder
Returns
Type Description
ListFeaturesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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