Class UpdateAutoscalingPolicyRequest.Builder (4.38.0)

public static final class UpdateAutoscalingPolicyRequest.Builder extends GeneratedMessageV3.Builder<UpdateAutoscalingPolicyRequest.Builder> implements UpdateAutoscalingPolicyRequestOrBuilder

A request to update an autoscaling policy.

Protobuf type google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateAutoscalingPolicyRequest build()
Returns
TypeDescription
UpdateAutoscalingPolicyRequest

buildPartial()

public UpdateAutoscalingPolicyRequest buildPartial()
Returns
TypeDescription
UpdateAutoscalingPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public UpdateAutoscalingPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicy()

public UpdateAutoscalingPolicyRequest.Builder clearPolicy()

Required. The updated autoscaling policy.

.google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateAutoscalingPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateAutoscalingPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPolicy()

public AutoscalingPolicy getPolicy()

Required. The updated autoscaling policy.

.google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AutoscalingPolicy

The policy.

getPolicyBuilder()

public AutoscalingPolicy.Builder getPolicyBuilder()

Required. The updated autoscaling policy.

.google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AutoscalingPolicy.Builder

getPolicyOrBuilder()

public AutoscalingPolicyOrBuilder getPolicyOrBuilder()

Required. The updated autoscaling policy.

.google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AutoscalingPolicyOrBuilder

hasPolicy()

public boolean hasPolicy()

Required. The updated autoscaling policy.

.google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the policy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateAutoscalingPolicyRequest other)

public UpdateAutoscalingPolicyRequest.Builder mergeFrom(UpdateAutoscalingPolicyRequest other)
Parameter
NameDescription
otherUpdateAutoscalingPolicyRequest
Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePolicy(AutoscalingPolicy value)

public UpdateAutoscalingPolicyRequest.Builder mergePolicy(AutoscalingPolicy value)

Required. The updated autoscaling policy.

.google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAutoscalingPolicy
Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicy(AutoscalingPolicy value)

public UpdateAutoscalingPolicyRequest.Builder setPolicy(AutoscalingPolicy value)

Required. The updated autoscaling policy.

.google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAutoscalingPolicy
Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder

setPolicy(AutoscalingPolicy.Builder builderForValue)

public UpdateAutoscalingPolicyRequest.Builder setPolicy(AutoscalingPolicy.Builder builderForValue)

Required. The updated autoscaling policy.

.google.cloud.dataproc.v1.AutoscalingPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueAutoscalingPolicy.Builder
Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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