Class CreateAutoscalingPolicyRequest.Builder (4.11.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAutoscalingPolicyRequest build()
Returns
TypeDescription
CreateAutoscalingPolicyRequest

buildPartial()

public CreateAutoscalingPolicyRequest buildPartial()
Returns
TypeDescription
CreateAutoscalingPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CreateAutoscalingPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAutoscalingPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AutoscalingPolicyOrBuilder

hasPolicy()

public boolean hasPolicy()

Required. The autoscaling policy to create.

.google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.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(CreateAutoscalingPolicyRequest other)

public CreateAutoscalingPolicyRequest.Builder mergeFrom(CreateAutoscalingPolicyRequest other)
Parameter
NameDescription
otherCreateAutoscalingPolicyRequest
Returns
TypeDescription
CreateAutoscalingPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateAutoscalingPolicyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueAutoscalingPolicy
Returns
TypeDescription
CreateAutoscalingPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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