public static final class CreateAutoscalingPolicyRequest.Builder extends GeneratedMessage.Builder<CreateAutoscalingPolicyRequest.Builder> implements CreateAutoscalingPolicyRequestOrBuilderA request to create an autoscaling policy.
Protobuf type google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateAutoscalingPolicyRequest.BuilderImplements
CreateAutoscalingPolicyRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
getDefaultInstanceForType()
public CreateAutoscalingPolicyRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateAutoscalingPolicyRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateAutoscalingPolicyRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateAutoscalingPolicyRequest.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
|