Class SetAddonsConfigRequest.Builder (2.45.0)

public static final class SetAddonsConfigRequest.Builder extends GeneratedMessageV3.Builder<SetAddonsConfigRequest.Builder> implements SetAddonsConfigRequestOrBuilder

SetAddonsConfigRequest sets the addons associated with the cluster.

Protobuf type google.container.v1.SetAddonsConfigRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SetAddonsConfigRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides

build()

public SetAddonsConfigRequest build()
Returns
Type Description
SetAddonsConfigRequest

buildPartial()

public SetAddonsConfigRequest buildPartial()
Returns
Type Description
SetAddonsConfigRequest

clear()

public SetAddonsConfigRequest.Builder clear()
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides

clearAddonsConfig()

public SetAddonsConfigRequest.Builder clearAddonsConfig()

Required. The desired configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SetAddonsConfigRequest.Builder

clearClusterId() (deprecated)

public SetAddonsConfigRequest.Builder clearClusterId()

Deprecated. google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2902

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SetAddonsConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides

clearName()

public SetAddonsConfigRequest.Builder clearName()

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

string name = 6;

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SetAddonsConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides

clearProjectId() (deprecated)

public SetAddonsConfigRequest.Builder clearProjectId()

Deprecated. google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2892

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

clearZone() (deprecated)

public SetAddonsConfigRequest.Builder clearZone()

Deprecated. google.container.v1.SetAddonsConfigRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2898

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

clone()

public SetAddonsConfigRequest.Builder clone()
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides

getAddonsConfig()

public AddonsConfig getAddonsConfig()

Required. The desired configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddonsConfig

The addonsConfig.

getAddonsConfigBuilder()

public AddonsConfig.Builder getAddonsConfigBuilder()

Required. The desired configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddonsConfig.Builder

getAddonsConfigOrBuilder()

public AddonsConfigOrBuilder getAddonsConfigOrBuilder()

Required. The desired configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddonsConfigOrBuilder

getClusterId() (deprecated)

public String getClusterId()

Deprecated. google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2902

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
Type Description
String

The clusterId.

getClusterIdBytes() (deprecated)

public ByteString getClusterIdBytes()

Deprecated. google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2902

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
Type Description
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

public SetAddonsConfigRequest getDefaultInstanceForType()
Returns
Type Description
SetAddonsConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

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

string name = 6;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 6;

Returns
Type Description
ByteString

The bytes for name.

getProjectId() (deprecated)

public String getProjectId()

Deprecated. google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2892

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
Type Description
String

The projectId.

getProjectIdBytes() (deprecated)

public ByteString getProjectIdBytes()

Deprecated. google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2892

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
Type Description
ByteString

The bytes for projectId.

getZone() (deprecated)

public String getZone()

Deprecated. google.container.v1.SetAddonsConfigRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2898

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
Type Description
String

The zone.

getZoneBytes() (deprecated)

public ByteString getZoneBytes()

Deprecated. google.container.v1.SetAddonsConfigRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2898

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
Type Description
ByteString

The bytes for zone.

hasAddonsConfig()

public boolean hasAddonsConfig()

Required. The desired configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the addonsConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAddonsConfig(AddonsConfig value)

public SetAddonsConfigRequest.Builder mergeAddonsConfig(AddonsConfig value)

Required. The desired configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AddonsConfig
Returns
Type Description
SetAddonsConfigRequest.Builder

mergeFrom(SetAddonsConfigRequest other)

public SetAddonsConfigRequest.Builder mergeFrom(SetAddonsConfigRequest other)
Parameter
Name Description
other SetAddonsConfigRequest
Returns
Type Description
SetAddonsConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SetAddonsConfigRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SetAddonsConfigRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SetAddonsConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides

setAddonsConfig(AddonsConfig value)

public SetAddonsConfigRequest.Builder setAddonsConfig(AddonsConfig value)

Required. The desired configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AddonsConfig
Returns
Type Description
SetAddonsConfigRequest.Builder

setAddonsConfig(AddonsConfig.Builder builderForValue)

public SetAddonsConfigRequest.Builder setAddonsConfig(AddonsConfig.Builder builderForValue)

Required. The desired configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AddonsConfig.Builder
Returns
Type Description
SetAddonsConfigRequest.Builder

setClusterId(String value) (deprecated)

public SetAddonsConfigRequest.Builder setClusterId(String value)

Deprecated. google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2902

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Parameter
Name Description
value String

The clusterId to set.

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

setClusterIdBytes(ByteString value) (deprecated)

public SetAddonsConfigRequest.Builder setClusterIdBytes(ByteString value)

Deprecated. google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2902

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for clusterId to set.

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SetAddonsConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides

setName(String value)

public SetAddonsConfigRequest.Builder setName(String value)

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

string name = 6;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SetAddonsConfigRequest.Builder setNameBytes(ByteString value)

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

string name = 6;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

setProjectId(String value) (deprecated)

public SetAddonsConfigRequest.Builder setProjectId(String value)

Deprecated. google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2892

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value) (deprecated)

public SetAddonsConfigRequest.Builder setProjectIdBytes(ByteString value)

Deprecated. google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2892

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

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

public SetAddonsConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SetAddonsConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SetAddonsConfigRequest.Builder
Overrides

setZone(String value) (deprecated)

public SetAddonsConfigRequest.Builder setZone(String value)

Deprecated. google.container.v1.SetAddonsConfigRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2898

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value) (deprecated)

public SetAddonsConfigRequest.Builder setZoneBytes(ByteString value)

Deprecated. google.container.v1.SetAddonsConfigRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2898

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
SetAddonsConfigRequest.Builder

This builder for chaining.