Class ListAutoscalingPoliciesResponse.Builder (4.50.0)

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
Type Description
Descriptor

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
Type Description
ListAutoscalingPoliciesResponse.Builder

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
Name Description
value AutoscalingPolicy
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder

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
Name Description
builderForValue AutoscalingPolicy.Builder
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder

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
Name Description
index int
value AutoscalingPolicy
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder

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
Name Description
index int
builderForValue AutoscalingPolicy.Builder
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder

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
Type Description
AutoscalingPolicy.Builder

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
Name Description
index int
Returns
Type Description
AutoscalingPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAutoscalingPoliciesResponse build()
Returns
Type Description
ListAutoscalingPoliciesResponse

buildPartial()

public ListAutoscalingPoliciesResponse buildPartial()
Returns
Type Description
ListAutoscalingPoliciesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListAutoscalingPoliciesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder
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
Type Description
ListAutoscalingPoliciesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListAutoscalingPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder
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
Type Description
ListAutoscalingPoliciesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListAutoscalingPoliciesResponse getDefaultInstanceForType()
Returns
Type Description
ListAutoscalingPoliciesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Name Description
index int
Returns
Type Description
AutoscalingPolicy

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
Name Description
index int
Returns
Type Description
AutoscalingPolicy.Builder

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
Type Description
List<Builder>

getPoliciesCount()

public int getPoliciesCount()

Output only. Autoscaling policies list.

repeated .google.cloud.dataproc.v1.AutoscalingPolicy policies = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

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
Type Description
List<AutoscalingPolicy>

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
Name Description
index int
Returns
Type Description
AutoscalingPolicyOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListAutoscalingPoliciesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListAutoscalingPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder
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
Name Description
index int
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListAutoscalingPoliciesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder
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
Type Description
ListAutoscalingPoliciesResponse.Builder

This builder for chaining.

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
Type Description
ListAutoscalingPoliciesResponse.Builder

This builder for chaining.

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
Name Description
index int
value AutoscalingPolicy
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder

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
Name Description
index int
builderForValue AutoscalingPolicy.Builder
Returns
Type Description
ListAutoscalingPoliciesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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