Class UpgradeClusterRequest (0.38.0)

public final class UpgradeClusterRequest extends GeneratedMessageV3 implements UpgradeClusterRequestOrBuilder

Upgrades a cluster.

Protobuf type google.cloud.edgecontainer.v1.UpgradeClusterRequest

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

REQUEST_ID_FIELD_NUMBER

public static final int REQUEST_ID_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEDULE_FIELD_NUMBER

public static final int SCHEDULE_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_VERSION_FIELD_NUMBER

public static final int TARGET_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpgradeClusterRequest getDefaultInstance()
Returns
TypeDescription
UpgradeClusterRequest

getDescriptor()

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

newBuilder()

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

newBuilder(UpgradeClusterRequest prototype)

public static UpgradeClusterRequest.Builder newBuilder(UpgradeClusterRequest prototype)
Parameter
NameDescription
prototypeUpgradeClusterRequest
Returns
TypeDescription
UpgradeClusterRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public UpgradeClusterRequest getDefaultInstanceForType()
Returns
TypeDescription
UpgradeClusterRequest

getName()

public String getName()

Required. The resource name of the cluster.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the cluster.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getRequestId()

public String getRequestId()

A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if request_id is provided.

string request_id = 4;

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is only idempotent if request_id is provided.

string request_id = 4;

Returns
TypeDescription
ByteString

The bytes for requestId.

getSchedule()

public UpgradeClusterRequest.Schedule getSchedule()

The schedule for the upgrade.

.google.cloud.edgecontainer.v1.UpgradeClusterRequest.Schedule schedule = 3;

Returns
TypeDescription
UpgradeClusterRequest.Schedule

The schedule.

getScheduleValue()

public int getScheduleValue()

The schedule for the upgrade.

.google.cloud.edgecontainer.v1.UpgradeClusterRequest.Schedule schedule = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for schedule.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTargetVersion()

public String getTargetVersion()

Required. The version the cluster is going to be upgraded to.

string target_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The targetVersion.

getTargetVersionBytes()

public ByteString getTargetVersionBytes()

Required. The version the cluster is going to be upgraded to.

string target_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for targetVersion.

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 UpgradeClusterRequest.Builder newBuilderForType()
Returns
TypeDescription
UpgradeClusterRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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