Class SetMaintenancePolicyRequest (2.31.0)

public final class SetMaintenancePolicyRequest extends GeneratedMessageV3 implements SetMaintenancePolicyRequestOrBuilder

SetMaintenancePolicyRequest sets the maintenance policy for a cluster.

Protobuf type google.container.v1.SetMaintenancePolicyRequest

Static Fields

CLUSTER_ID_FIELD_NUMBER

public static final int CLUSTER_ID_FIELD_NUMBER
Field Value
TypeDescription
int

MAINTENANCE_POLICY_FIELD_NUMBER

public static final int MAINTENANCE_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_ID_FIELD_NUMBER

public static final int PROJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ZONE_FIELD_NUMBER

public static final int ZONE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SetMaintenancePolicyRequest getDefaultInstance()
Returns
TypeDescription
SetMaintenancePolicyRequest

getDescriptor()

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

newBuilder()

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

newBuilder(SetMaintenancePolicyRequest prototype)

public static SetMaintenancePolicyRequest.Builder newBuilder(SetMaintenancePolicyRequest prototype)
Parameter
NameDescription
prototypeSetMaintenancePolicyRequest
Returns
TypeDescription
SetMaintenancePolicyRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getClusterId()

public String getClusterId()

Required. The name of the cluster to update.

string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes()

public ByteString getClusterIdBytes()

Required. The name of the cluster to update.

string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

public SetMaintenancePolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
SetMaintenancePolicyRequest

getMaintenancePolicy()

public MaintenancePolicy getMaintenancePolicy()

Required. The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy.

.google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MaintenancePolicy

The maintenancePolicy.

getMaintenancePolicyOrBuilder()

public MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder()

Required. The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy.

.google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MaintenancePolicyOrBuilder

getName()

public String getName()

The name (project, location, cluster name) of the cluster to set maintenance policy. Specified in the format projects/*/locations/*/clusters/*.

string name = 5;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name (project, location, cluster name) of the cluster to set maintenance policy. Specified in the format projects/*/locations/*/clusters/*.

string name = 5;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getProjectId()

public String getProjectId()

Required. The Google Developers Console project ID or project number.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The Google Developers Console project ID or project number.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for projectId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getZone()

public String getZone()

Required. The name of the Google Compute Engine zone in which the cluster resides.

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

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Required. The name of the Google Compute Engine zone in which the cluster resides.

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

Returns
TypeDescription
ByteString

The bytes for zone.

hasMaintenancePolicy()

public boolean hasMaintenancePolicy()

Required. The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy.

.google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the maintenancePolicy 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 SetMaintenancePolicyRequest.Builder newBuilderForType()
Returns
TypeDescription
SetMaintenancePolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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