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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAutoscalingPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateAutoscalingPolicyRequest build()
buildPartial()
public CreateAutoscalingPolicyRequest buildPartial()
clear()
public CreateAutoscalingPolicyRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateAutoscalingPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAutoscalingPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clearPolicy()
public CreateAutoscalingPolicyRequest.Builder clearPolicy()
Required. The autoscaling policy to create.
.google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public CreateAutoscalingPolicyRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateAutoscalingPolicyRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
getPolicyBuilder()
public AutoscalingPolicy.Builder getPolicyBuilder()
Required. The autoscaling policy to create.
.google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED];
getPolicyOrBuilder()
public AutoscalingPolicyOrBuilder getPolicyOrBuilder()
Required. The autoscaling policy to create.
.google.cloud.dataproc.v1.AutoscalingPolicy policy = 2 [(.google.api.field_behavior) = REQUIRED];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateAutoscalingPolicyRequest other)
public CreateAutoscalingPolicyRequest.Builder mergeFrom(CreateAutoscalingPolicyRequest other)
public CreateAutoscalingPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateAutoscalingPolicyRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAutoscalingPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAutoscalingPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateAutoscalingPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAutoscalingPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides