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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAutoscalingPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateAutoscalingPolicyRequest build()
Returns
buildPartial()
public CreateAutoscalingPolicyRequest buildPartial()
Returns
clear()
public CreateAutoscalingPolicyRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateAutoscalingPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAutoscalingPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearPolicy()
public CreateAutoscalingPolicyRequest.Builder clearPolicy()
Required. The autoscaling policy to create.
.google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public CreateAutoscalingPolicyRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateAutoscalingPolicyRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
getPolicy()
public AutoscalingPolicy getPolicy()
Required. The autoscaling policy to create.
.google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getPolicyBuilder()
public AutoscalingPolicy.Builder getPolicyBuilder()
Required. The autoscaling policy to create.
.google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getPolicyOrBuilder()
public AutoscalingPolicyOrBuilder getPolicyOrBuilder()
Required. The autoscaling policy to create.
.google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateAutoscalingPolicyRequest other)
public CreateAutoscalingPolicyRequest.Builder mergeFrom(CreateAutoscalingPolicyRequest other)
Parameter
Returns
public CreateAutoscalingPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateAutoscalingPolicyRequest.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAutoscalingPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAutoscalingPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateAutoscalingPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAutoscalingPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides