Class CreateAutoscalingPolicyRequest.Builder (4.48.0)

public static final class CreateAutoscalingPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateAutoscalingPolicyRequest.Builder> implements CreateAutoscalingPolicyRequestOrBuilder

A request to create an autoscaling policy.

Protobuf type google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAutoscalingPolicyRequest build()
Returns
Type Description
CreateAutoscalingPolicyRequest

buildPartial()

public CreateAutoscalingPolicyRequest buildPartial()
Returns
Type Description
CreateAutoscalingPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateAutoscalingPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateAutoscalingPolicyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateAutoscalingPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateAutoscalingPolicyRequest.Builder
Overrides

clearParent()

public CreateAutoscalingPolicyRequest.Builder clearParent()

Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateAutoscalingPolicyRequest.Builder

This builder for chaining.

clearPolicy()

public CreateAutoscalingPolicyRequest.Builder clearPolicy()

Required. The autoscaling policy to create.

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

Returns
Type Description
CreateAutoscalingPolicyRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateAutoscalingPolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateAutoscalingPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getPolicy()

public AutoscalingPolicy getPolicy()

Required. The autoscaling policy to create.

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

Returns
Type Description
AutoscalingPolicy

The policy.

getPolicyBuilder()

public AutoscalingPolicy.Builder getPolicyBuilder()

Required. The autoscaling policy to create.

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

Returns
Type Description
AutoscalingPolicy.Builder

getPolicyOrBuilder()

public AutoscalingPolicyOrBuilder getPolicyOrBuilder()

Required. The autoscaling policy to create.

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

Returns
Type Description
AutoscalingPolicyOrBuilder

hasPolicy()

public boolean hasPolicy()

Required. The autoscaling policy to create.

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

Returns
Type Description
boolean

Whether the policy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateAutoscalingPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePolicy(AutoscalingPolicy value)

public CreateAutoscalingPolicyRequest.Builder mergePolicy(AutoscalingPolicy value)

Required. The autoscaling policy to create.

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

Parameter
Name Description
value AutoscalingPolicy
Returns
Type Description
CreateAutoscalingPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateAutoscalingPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateAutoscalingPolicyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateAutoscalingPolicyRequest.Builder setParent(String value)

Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAutoscalingPolicyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAutoscalingPolicyRequest.Builder setParentBytes(ByteString value)

Required. The "resource name" of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.autoscalingPolicies.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.autoscalingPolicies.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateAutoscalingPolicyRequest.Builder

This builder for chaining.

setPolicy(AutoscalingPolicy value)

public CreateAutoscalingPolicyRequest.Builder setPolicy(AutoscalingPolicy value)

Required. The autoscaling policy to create.

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

Parameter
Name Description
value AutoscalingPolicy
Returns
Type Description
CreateAutoscalingPolicyRequest.Builder

setPolicy(AutoscalingPolicy.Builder builderForValue)

public CreateAutoscalingPolicyRequest.Builder setPolicy(AutoscalingPolicy.Builder builderForValue)

Required. The autoscaling policy to create.

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

Parameter
Name Description
builderForValue AutoscalingPolicy.Builder
Returns
Type Description
CreateAutoscalingPolicyRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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