Class AzureK8sVersionInfo.Builder (0.39.0)

public static final class AzureK8sVersionInfo.Builder extends GeneratedMessageV3.Builder<AzureK8sVersionInfo.Builder> implements AzureK8sVersionInfoOrBuilder

Kubernetes version information of GKE cluster on Azure.

Protobuf type google.cloud.gkemulticloud.v1.AzureK8sVersionInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AzureK8sVersionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides

build()

public AzureK8sVersionInfo build()
Returns
TypeDescription
AzureK8sVersionInfo

buildPartial()

public AzureK8sVersionInfo buildPartial()
Returns
TypeDescription
AzureK8sVersionInfo

clear()

public AzureK8sVersionInfo.Builder clear()
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides

clearEnabled()

public AzureK8sVersionInfo.Builder clearEnabled()

Optional. True if the version is available for cluster creation. If a version is enabled for creation, it can be used to create new clusters. Otherwise, cluster creation will fail. However, cluster upgrade operations may succeed, even if the version is not enabled.

bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AzureK8sVersionInfo.Builder

This builder for chaining.

clearEndOfLife()

public AzureK8sVersionInfo.Builder clearEndOfLife()

Optional. True if this cluster version belongs to a minor version that has reached its end of life and is no longer in scope to receive security and bug fixes.

bool end_of_life = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AzureK8sVersionInfo.Builder

This builder for chaining.

clearEndOfLifeDate()

public AzureK8sVersionInfo.Builder clearEndOfLifeDate()

Optional. The estimated date (in Pacific Time) when this cluster version will reach its end of life. Or if this version is no longer supported (the end_of_life field is true), this is the actual date (in Pacific time) when the version reached its end of life.

.google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AzureK8sVersionInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public AzureK8sVersionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AzureK8sVersionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides

clearReleaseDate()

public AzureK8sVersionInfo.Builder clearReleaseDate()

Optional. The date (in Pacific Time) when the cluster version was released.

.google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AzureK8sVersionInfo.Builder

clearVersion()

public AzureK8sVersionInfo.Builder clearVersion()

Kubernetes version name (for example, 1.19.10-gke.1000)

string version = 1;

Returns
TypeDescription
AzureK8sVersionInfo.Builder

This builder for chaining.

clone()

public AzureK8sVersionInfo.Builder clone()
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides

getDefaultInstanceForType()

public AzureK8sVersionInfo getDefaultInstanceForType()
Returns
TypeDescription
AzureK8sVersionInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Optional. True if the version is available for cluster creation. If a version is enabled for creation, it can be used to create new clusters. Otherwise, cluster creation will fail. However, cluster upgrade operations may succeed, even if the version is not enabled.

bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The enabled.

getEndOfLife()

public boolean getEndOfLife()

Optional. True if this cluster version belongs to a minor version that has reached its end of life and is no longer in scope to receive security and bug fixes.

bool end_of_life = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The endOfLife.

getEndOfLifeDate()

public Date getEndOfLifeDate()

Optional. The estimated date (in Pacific Time) when this cluster version will reach its end of life. Or if this version is no longer supported (the end_of_life field is true), this is the actual date (in Pacific time) when the version reached its end of life.

.google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
com.google.type.Date

The endOfLifeDate.

getEndOfLifeDateBuilder()

public Date.Builder getEndOfLifeDateBuilder()

Optional. The estimated date (in Pacific Time) when this cluster version will reach its end of life. Or if this version is no longer supported (the end_of_life field is true), this is the actual date (in Pacific time) when the version reached its end of life.

.google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
com.google.type.Date.Builder

getEndOfLifeDateOrBuilder()

public DateOrBuilder getEndOfLifeDateOrBuilder()

Optional. The estimated date (in Pacific Time) when this cluster version will reach its end of life. Or if this version is no longer supported (the end_of_life field is true), this is the actual date (in Pacific time) when the version reached its end of life.

.google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
com.google.type.DateOrBuilder

getReleaseDate()

public Date getReleaseDate()

Optional. The date (in Pacific Time) when the cluster version was released.

.google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
com.google.type.Date

The releaseDate.

getReleaseDateBuilder()

public Date.Builder getReleaseDateBuilder()

Optional. The date (in Pacific Time) when the cluster version was released.

.google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
com.google.type.Date.Builder

getReleaseDateOrBuilder()

public DateOrBuilder getReleaseDateOrBuilder()

Optional. The date (in Pacific Time) when the cluster version was released.

.google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
com.google.type.DateOrBuilder

getVersion()

public String getVersion()

Kubernetes version name (for example, 1.19.10-gke.1000)

string version = 1;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Kubernetes version name (for example, 1.19.10-gke.1000)

string version = 1;

Returns
TypeDescription
ByteString

The bytes for version.

hasEndOfLifeDate()

public boolean hasEndOfLifeDate()

Optional. The estimated date (in Pacific Time) when this cluster version will reach its end of life. Or if this version is no longer supported (the end_of_life field is true), this is the actual date (in Pacific time) when the version reached its end of life.

.google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the endOfLifeDate field is set.

hasReleaseDate()

public boolean hasReleaseDate()

Optional. The date (in Pacific Time) when the cluster version was released.

.google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the releaseDate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndOfLifeDate(Date value)

public AzureK8sVersionInfo.Builder mergeEndOfLifeDate(Date value)

Optional. The estimated date (in Pacific Time) when this cluster version will reach its end of life. Or if this version is no longer supported (the end_of_life field is true), this is the actual date (in Pacific time) when the version reached its end of life.

.google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
AzureK8sVersionInfo.Builder

mergeFrom(AzureK8sVersionInfo other)

public AzureK8sVersionInfo.Builder mergeFrom(AzureK8sVersionInfo other)
Parameter
NameDescription
otherAzureK8sVersionInfo
Returns
TypeDescription
AzureK8sVersionInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AzureK8sVersionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AzureK8sVersionInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides

mergeReleaseDate(Date value)

public AzureK8sVersionInfo.Builder mergeReleaseDate(Date value)

Optional. The date (in Pacific Time) when the cluster version was released.

.google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
AzureK8sVersionInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AzureK8sVersionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides

setEnabled(boolean value)

public AzureK8sVersionInfo.Builder setEnabled(boolean value)

Optional. True if the version is available for cluster creation. If a version is enabled for creation, it can be used to create new clusters. Otherwise, cluster creation will fail. However, cluster upgrade operations may succeed, even if the version is not enabled.

bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
AzureK8sVersionInfo.Builder

This builder for chaining.

setEndOfLife(boolean value)

public AzureK8sVersionInfo.Builder setEndOfLife(boolean value)

Optional. True if this cluster version belongs to a minor version that has reached its end of life and is no longer in scope to receive security and bug fixes.

bool end_of_life = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The endOfLife to set.

Returns
TypeDescription
AzureK8sVersionInfo.Builder

This builder for chaining.

setEndOfLifeDate(Date value)

public AzureK8sVersionInfo.Builder setEndOfLifeDate(Date value)

Optional. The estimated date (in Pacific Time) when this cluster version will reach its end of life. Or if this version is no longer supported (the end_of_life field is true), this is the actual date (in Pacific time) when the version reached its end of life.

.google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
AzureK8sVersionInfo.Builder

setEndOfLifeDate(Date.Builder builderForValue)

public AzureK8sVersionInfo.Builder setEndOfLifeDate(Date.Builder builderForValue)

Optional. The estimated date (in Pacific Time) when this cluster version will reach its end of life. Or if this version is no longer supported (the end_of_life field is true), this is the actual date (in Pacific time) when the version reached its end of life.

.google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
AzureK8sVersionInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AzureK8sVersionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides

setReleaseDate(Date value)

public AzureK8sVersionInfo.Builder setReleaseDate(Date value)

Optional. The date (in Pacific Time) when the cluster version was released.

.google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
AzureK8sVersionInfo.Builder

setReleaseDate(Date.Builder builderForValue)

public AzureK8sVersionInfo.Builder setReleaseDate(Date.Builder builderForValue)

Optional. The date (in Pacific Time) when the cluster version was released.

.google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
AzureK8sVersionInfo.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AzureK8sVersionInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AzureK8sVersionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AzureK8sVersionInfo.Builder
Overrides

setVersion(String value)

public AzureK8sVersionInfo.Builder setVersion(String value)

Kubernetes version name (for example, 1.19.10-gke.1000)

string version = 1;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
AzureK8sVersionInfo.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public AzureK8sVersionInfo.Builder setVersionBytes(ByteString value)

Kubernetes version name (for example, 1.19.10-gke.1000)

string version = 1;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
AzureK8sVersionInfo.Builder

This builder for chaining.