public static final class ListAutoscalingPoliciesResponse.Builder extends GeneratedMessageV3.Builder<ListAutoscalingPoliciesResponse.Builder> implements ListAutoscalingPoliciesResponseOrBuilder
A response to a request to list autoscaling policies in a project.
Protobuf type google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllPolicies(Iterable<? extends AutoscalingPolicy> values)
public ListAutoscalingPoliciesResponse.Builder addAllPolicies(Iterable<? extends AutoscalingPolicy> values)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.dataproc.v1.AutoscalingPolicy>
|
Returns
addPolicies(AutoscalingPolicy value)
public ListAutoscalingPoliciesResponse.Builder addPolicies(AutoscalingPolicy value)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
addPolicies(AutoscalingPolicy.Builder builderForValue)
public ListAutoscalingPoliciesResponse.Builder addPolicies(AutoscalingPolicy.Builder builderForValue)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
addPolicies(int index, AutoscalingPolicy value)
public ListAutoscalingPoliciesResponse.Builder addPolicies(int index, AutoscalingPolicy value)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters
Returns
addPolicies(int index, AutoscalingPolicy.Builder builderForValue)
public ListAutoscalingPoliciesResponse.Builder addPolicies(int index, AutoscalingPolicy.Builder builderForValue)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters
Returns
addPoliciesBuilder()
public AutoscalingPolicy.Builder addPoliciesBuilder()
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
addPoliciesBuilder(int index)
public AutoscalingPolicy.Builder addPoliciesBuilder(int index)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListAutoscalingPoliciesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListAutoscalingPoliciesResponse build()
Returns
buildPartial()
public ListAutoscalingPoliciesResponse buildPartial()
Returns
clear()
public ListAutoscalingPoliciesResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListAutoscalingPoliciesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListAutoscalingPoliciesResponse.Builder clearNextPageToken()
Output only. This token is included in the response if there are more
results to fetch.
string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListAutoscalingPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPolicies()
public ListAutoscalingPoliciesResponse.Builder clearPolicies()
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clone()
public ListAutoscalingPoliciesResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListAutoscalingPoliciesResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNextPageToken()
public String getNextPageToken()
Output only. This token is included in the response if there are more
results to fetch.
string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
Output only. This token is included in the response if there are more
results to fetch.
string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
ByteString | The bytes for nextPageToken.
|
getPolicies(int index)
public AutoscalingPolicy getPolicies(int index)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
getPoliciesBuilder(int index)
public AutoscalingPolicy.Builder getPoliciesBuilder(int index)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
getPoliciesBuilderList()
public List<AutoscalingPolicy.Builder> getPoliciesBuilderList()
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getPoliciesCount()
public int getPoliciesCount()
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getPoliciesList()
public List<AutoscalingPolicy> getPoliciesList()
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getPoliciesOrBuilder(int index)
public AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
getPoliciesOrBuilderList()
public List<? extends AutoscalingPolicyOrBuilder> getPoliciesOrBuilderList()
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
List<? extends com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListAutoscalingPoliciesResponse other)
public ListAutoscalingPoliciesResponse.Builder mergeFrom(ListAutoscalingPoliciesResponse other)
Parameter
Returns
public ListAutoscalingPoliciesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListAutoscalingPoliciesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListAutoscalingPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removePolicies(int index)
public ListAutoscalingPoliciesResponse.Builder removePolicies(int index)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListAutoscalingPoliciesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNextPageToken(String value)
public ListAutoscalingPoliciesResponse.Builder setNextPageToken(String value)
Output only. This token is included in the response if there are more
results to fetch.
string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
value | String
The nextPageToken to set.
|
Returns
setNextPageTokenBytes(ByteString value)
public ListAutoscalingPoliciesResponse.Builder setNextPageTokenBytes(ByteString value)
Output only. This token is included in the response if there are more
results to fetch.
string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
Returns
setPolicies(int index, AutoscalingPolicy value)
public ListAutoscalingPoliciesResponse.Builder setPolicies(int index, AutoscalingPolicy value)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters
Returns
setPolicies(int index, AutoscalingPolicy.Builder builderForValue)
public ListAutoscalingPoliciesResponse.Builder setPolicies(int index, AutoscalingPolicy.Builder builderForValue)
Output only. Autoscaling policies list.
repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListAutoscalingPoliciesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListAutoscalingPoliciesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides