Class SetMaintenancePolicyRequest (2.56.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
Type Description
int

MAINTENANCE_POLICY_FIELD_NUMBER

public static final int MAINTENANCE_POLICY_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PROJECT_ID_FIELD_NUMBER

public static final int PROJECT_ID_FIELD_NUMBER
Field Value
Type Description
int

ZONE_FIELD_NUMBER

public static final int ZONE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SetMaintenancePolicyRequest getDefaultInstance()
Returns
Type Description
SetMaintenancePolicyRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SetMaintenancePolicyRequest.Builder newBuilder()
Returns
Type Description
SetMaintenancePolicyRequest.Builder

newBuilder(SetMaintenancePolicyRequest prototype)

public static SetMaintenancePolicyRequest.Builder newBuilder(SetMaintenancePolicyRequest prototype)
Parameter
Name Description
prototype SetMaintenancePolicyRequest
Returns
Type Description
SetMaintenancePolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static SetMaintenancePolicyRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SetMaintenancePolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SetMaintenancePolicyRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SetMaintenancePolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SetMaintenancePolicyRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SetMaintenancePolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SetMaintenancePolicyRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SetMaintenancePolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SetMaintenancePolicyRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SetMaintenancePolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SetMaintenancePolicyRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SetMaintenancePolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SetMaintenancePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SetMaintenancePolicyRequest> parser()
Returns
Type Description
Parser<SetMaintenancePolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getClusterId()

public String getClusterId()

Required. The name of the cluster to update.

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

Returns
Type Description
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
Type Description
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

public SetMaintenancePolicyRequest getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<SetMaintenancePolicyRequest> getParserForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for projectId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the maintenancePolicy field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SetMaintenancePolicyRequest.Builder newBuilderForType()
Returns
Type Description
SetMaintenancePolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SetMaintenancePolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SetMaintenancePolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SetMaintenancePolicyRequest.Builder toBuilder()
Returns
Type Description
SetMaintenancePolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException