Class ListFeaturesResponse.Builder (1.6.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.v1.ListFeaturesResponse

Static Methods

getDescriptor()

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

Methods

addAllResources(Iterable<? extends Feature> values)

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

The list of matching Features

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.gkehub.v1.Feature>
Returns
TypeDescription
ListFeaturesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResources(Feature value)

public ListFeaturesResponse.Builder addResources(Feature value)

The list of matching Features

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

Parameter
NameDescription
valueFeature
Returns
TypeDescription
ListFeaturesResponse.Builder

addResources(Feature.Builder builderForValue)

public ListFeaturesResponse.Builder addResources(Feature.Builder builderForValue)

The list of matching Features

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

Parameter
NameDescription
builderForValueFeature.Builder
Returns
TypeDescription
ListFeaturesResponse.Builder

addResources(int index, Feature value)

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

The list of matching Features

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

Parameters
NameDescription
indexint
valueFeature
Returns
TypeDescription
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.v1.Feature resources = 1;

Parameters
NameDescription
indexint
builderForValueFeature.Builder
Returns
TypeDescription
ListFeaturesResponse.Builder

addResourcesBuilder()

public Feature.Builder addResourcesBuilder()

The list of matching Features

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

Returns
TypeDescription
Feature.Builder

addResourcesBuilder(int index)

public Feature.Builder addResourcesBuilder(int index)

The list of matching Features

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Feature.Builder

build()

public ListFeaturesResponse build()
Returns
TypeDescription
ListFeaturesResponse

buildPartial()

public ListFeaturesResponse buildPartial()
Returns
TypeDescription
ListFeaturesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public ListFeaturesResponse.Builder clearResources()

The list of matching Features

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

Returns
TypeDescription
ListFeaturesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListFeaturesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListFeaturesResponse

getDescriptorForType()

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

The bytes for nextPageToken.

getResources(int index)

public Feature getResources(int index)

The list of matching Features

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Feature

getResourcesBuilder(int index)

public Feature.Builder getResourcesBuilder(int index)

The list of matching Features

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Feature.Builder

getResourcesBuilderList()

public List<Feature.Builder> getResourcesBuilderList()

The list of matching Features

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

Returns
TypeDescription
List<Builder>

getResourcesCount()

public int getResourcesCount()

The list of matching Features

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

Returns
TypeDescription
int

getResourcesList()

public List<Feature> getResourcesList()

The list of matching Features

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

Returns
TypeDescription
List<Feature>

getResourcesOrBuilder(int index)

public FeatureOrBuilder getResourcesOrBuilder(int index)

The list of matching Features

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FeatureOrBuilder

getResourcesOrBuilderList()

public List<? extends FeatureOrBuilder> getResourcesOrBuilderList()

The list of matching Features

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

Returns
TypeDescription
List<? extends com.google.cloud.gkehub.v1.FeatureOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListFeaturesResponse other)

public ListFeaturesResponse.Builder mergeFrom(ListFeaturesResponse other)
Parameter
NameDescription
otherListFeaturesResponse
Returns
TypeDescription
ListFeaturesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResources(int index)

public ListFeaturesResponse.Builder removeResources(int index)

The list of matching Features

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListFeaturesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1.Feature resources = 1;

Parameters
NameDescription
indexint
valueFeature
Returns
TypeDescription
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.v1.Feature resources = 1;

Parameters
NameDescription
indexint
builderForValueFeature.Builder
Returns
TypeDescription
ListFeaturesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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