Class UpdateAutoscalingPolicyRequest (4.18.0)

public final class UpdateAutoscalingPolicyRequest extends GeneratedMessageV3 implements UpdateAutoscalingPolicyRequestOrBuilder

A request to update an autoscaling policy.

Protobuf type google.cloud.dataproc.v1.UpdateAutoscalingPolicyRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > UpdateAutoscalingPolicyRequest

Static Fields

POLICY_FIELD_NUMBER

public static final int POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpdateAutoscalingPolicyRequest getDefaultInstance()
Returns
TypeDescription
UpdateAutoscalingPolicyRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static UpdateAutoscalingPolicyRequest.Builder newBuilder()
Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder

newBuilder(UpdateAutoscalingPolicyRequest prototype)

public static UpdateAutoscalingPolicyRequest.Builder newBuilder(UpdateAutoscalingPolicyRequest prototype)
Parameter
NameDescription
prototypeUpdateAutoscalingPolicyRequest
Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static UpdateAutoscalingPolicyRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateAutoscalingPolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UpdateAutoscalingPolicyRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UpdateAutoscalingPolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UpdateAutoscalingPolicyRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UpdateAutoscalingPolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UpdateAutoscalingPolicyRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateAutoscalingPolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UpdateAutoscalingPolicyRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateAutoscalingPolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UpdateAutoscalingPolicyRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UpdateAutoscalingPolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateAutoscalingPolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UpdateAutoscalingPolicyRequest> parser()
Returns
TypeDescription
Parser<UpdateAutoscalingPolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UpdateAutoscalingPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateAutoscalingPolicyRequest

getParserForType()

public Parser<UpdateAutoscalingPolicyRequest> getParserForType()
Returns
TypeDescription
Parser<UpdateAutoscalingPolicyRequest>
Overrides

getPolicy()

public AutoscalingPolicy getPolicy()

Required. The updated autoscaling policy.

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

Returns
TypeDescription
AutoscalingPolicy

The policy.

getPolicyOrBuilder()

public AutoscalingPolicyOrBuilder getPolicyOrBuilder()

Required. The updated autoscaling policy.

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

Returns
TypeDescription
AutoscalingPolicyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasPolicy()

public boolean hasPolicy()

Required. The updated autoscaling policy.

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

Returns
TypeDescription
boolean

Whether the policy field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UpdateAutoscalingPolicyRequest.Builder newBuilderForType()
Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpdateAutoscalingPolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UpdateAutoscalingPolicyRequest.Builder toBuilder()
Returns
TypeDescription
UpdateAutoscalingPolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException