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
MAINTENANCE_POLICY_FIELD_NUMBER
public static final int MAINTENANCE_POLICY_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER
Field Value
ZONE_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SetMaintenancePolicyRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SetMaintenancePolicyRequest.Builder newBuilder()
Returns
newBuilder(SetMaintenancePolicyRequest prototype)
public static SetMaintenancePolicyRequest.Builder newBuilder(SetMaintenancePolicyRequest prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static SetMaintenancePolicyRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SetMaintenancePolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SetMaintenancePolicyRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SetMaintenancePolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SetMaintenancePolicyRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SetMaintenancePolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static SetMaintenancePolicyRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SetMaintenancePolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static SetMaintenancePolicyRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SetMaintenancePolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SetMaintenancePolicyRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SetMaintenancePolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SetMaintenancePolicyRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
getDefaultInstanceForType()
public SetMaintenancePolicyRequest getDefaultInstanceForType()
Returns
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
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
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
getParserForType()
public Parser<SetMaintenancePolicyRequest> getParserForType()
Returns
Overrides
getProjectId()
public String getProjectId()
Returns
Type | Description |
String | The projectId.
|
getProjectIdBytes()
public ByteString getProjectIdBytes()
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
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()
Returns
Overrides
internalGetFieldAccessorTable()