Class ListFeaturesResponse.Builder (1.0.1)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 1.0.1keyboard_arrow_down
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
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
Name
Description
values
Iterable <? extends com.google.cloud.gkehub.v1.Feature >
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListFeaturesResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
addResources(Feature value)
public ListFeaturesResponse . Builder addResources ( Feature value )
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Parameter
Returns
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
Returns
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
Returns
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
Returns
addResourcesBuilder()
public Feature . Builder addResourcesBuilder ()
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Returns
addResourcesBuilder(int index)
public Feature . Builder addResourcesBuilder ( int index )
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Parameter
Name
Description
index
int
Returns
build()
public ListFeaturesResponse build ()
Returns
buildPartial()
public ListFeaturesResponse buildPartial ()
Returns
clear()
public ListFeaturesResponse . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListFeaturesResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListFeaturesResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearResources()
public ListFeaturesResponse . Builder clearResources ()
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Returns
clone()
public ListFeaturesResponse . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public ListFeaturesResponse getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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.v1.Feature resources = 1;
Parameter
Name
Description
index
int
Returns
getResourcesBuilder(int index)
public Feature . Builder getResourcesBuilder ( int index )
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Parameter
Name
Description
index
int
Returns
getResourcesBuilderList()
public List<Feature . Builder > getResourcesBuilderList ()
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Returns
getResourcesCount()
public int getResourcesCount ()
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Returns
getResourcesList()
public List<Feature> getResourcesList ()
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Returns
getResourcesOrBuilder(int index)
public FeatureOrBuilder getResourcesOrBuilder ( int index )
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Parameter
Name
Description
index
int
Returns
getResourcesOrBuilderList()
public List <? extends FeatureOrBuilder > getResourcesOrBuilderList ()
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Returns
Type
Description
List <? extends com.google.cloud.gkehub.v1.FeatureOrBuilder >
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(ListFeaturesResponse other)
public ListFeaturesResponse . Builder mergeFrom ( ListFeaturesResponse other )
Parameter
Returns
public ListFeaturesResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListFeaturesResponse . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListFeaturesResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
removeResources(int index)
public ListFeaturesResponse . Builder removeResources ( int index )
The list of matching Features
repeated .google.cloud.gkehub.v1.Feature resources = 1;
Parameter
Name
Description
index
int
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListFeaturesResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListFeaturesResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ListFeaturesResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]