Class ListAutoscalingPoliciesResponse.Builder (4.11.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.AutoscalingPolicy>
Returns
TypeDescription
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
NameDescription
valueAutoscalingPolicy
Returns
TypeDescription
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
NameDescription
builderForValueAutoscalingPolicy.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAutoscalingPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAutoscalingPolicy.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AutoscalingPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAutoscalingPoliciesResponse build()
Returns
TypeDescription
ListAutoscalingPoliciesResponse

buildPartial()

public ListAutoscalingPoliciesResponse buildPartial()
Returns
TypeDescription
ListAutoscalingPoliciesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListAutoscalingPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListAutoscalingPoliciesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListAutoscalingPoliciesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListAutoscalingPoliciesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dataproc.v1.AutoscalingPolicyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListAutoscalingPoliciesResponse other)

public ListAutoscalingPoliciesResponse.Builder mergeFrom(ListAutoscalingPoliciesResponse other)
Parameter
NameDescription
otherListAutoscalingPoliciesResponse
Returns
TypeDescription
ListAutoscalingPoliciesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListAutoscalingPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListAutoscalingPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueAutoscalingPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAutoscalingPolicy.Builder
Returns
TypeDescription
ListAutoscalingPoliciesResponse.Builder

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

public ListAutoscalingPoliciesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListAutoscalingPoliciesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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