Class WorkloadMetadataConfig.Builder (2.56.0)

public static final class WorkloadMetadataConfig.Builder extends GeneratedMessageV3.Builder<WorkloadMetadataConfig.Builder> implements WorkloadMetadataConfigOrBuilder

WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool.

Protobuf type google.container.v1beta1.WorkloadMetadataConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkloadMetadataConfig build()
Returns
Type Description
WorkloadMetadataConfig

buildPartial()

public WorkloadMetadataConfig buildPartial()
Returns
Type Description
WorkloadMetadataConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public WorkloadMetadataConfig.Builder clearMode()

Mode is the configuration for how to expose metadata to workloads running on the node pool.

.google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2;

Returns
Type Description
WorkloadMetadataConfig.Builder

This builder for chaining.

clearNodeMetadata() (deprecated)

public WorkloadMetadataConfig.Builder clearNodeMetadata()

Deprecated. google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See google/container/v1beta1/cluster_service.proto;l=4957

NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.

.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true];

Returns
Type Description
WorkloadMetadataConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public WorkloadMetadataConfig getDefaultInstanceForType()
Returns
Type Description
WorkloadMetadataConfig

getDescriptorForType()

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

getMode()

public WorkloadMetadataConfig.Mode getMode()

Mode is the configuration for how to expose metadata to workloads running on the node pool.

.google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2;

Returns
Type Description
WorkloadMetadataConfig.Mode

The mode.

getModeValue()

public int getModeValue()

Mode is the configuration for how to expose metadata to workloads running on the node pool.

.google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2;

Returns
Type Description
int

The enum numeric value on the wire for mode.

getNodeMetadata() (deprecated)

public WorkloadMetadataConfig.NodeMetadata getNodeMetadata()

Deprecated. google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See google/container/v1beta1/cluster_service.proto;l=4957

NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.

.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true];

Returns
Type Description
WorkloadMetadataConfig.NodeMetadata

The nodeMetadata.

getNodeMetadataValue() (deprecated)

public int getNodeMetadataValue()

Deprecated. google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See google/container/v1beta1/cluster_service.proto;l=4957

NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.

.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true];

Returns
Type Description
int

The enum numeric value on the wire for nodeMetadata.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkloadMetadataConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(WorkloadMetadataConfig.Mode value)

public WorkloadMetadataConfig.Builder setMode(WorkloadMetadataConfig.Mode value)

Mode is the configuration for how to expose metadata to workloads running on the node pool.

.google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2;

Parameter
Name Description
value WorkloadMetadataConfig.Mode

The mode to set.

Returns
Type Description
WorkloadMetadataConfig.Builder

This builder for chaining.

setModeValue(int value)

public WorkloadMetadataConfig.Builder setModeValue(int value)

Mode is the configuration for how to expose metadata to workloads running on the node pool.

.google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for mode to set.

Returns
Type Description
WorkloadMetadataConfig.Builder

This builder for chaining.

setNodeMetadata(WorkloadMetadataConfig.NodeMetadata value) (deprecated)

public WorkloadMetadataConfig.Builder setNodeMetadata(WorkloadMetadataConfig.NodeMetadata value)

Deprecated. google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See google/container/v1beta1/cluster_service.proto;l=4957

NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.

.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true];

Parameter
Name Description
value WorkloadMetadataConfig.NodeMetadata

The nodeMetadata to set.

Returns
Type Description
WorkloadMetadataConfig.Builder

This builder for chaining.

setNodeMetadataValue(int value) (deprecated)

public WorkloadMetadataConfig.Builder setNodeMetadataValue(int value)

Deprecated. google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See google/container/v1beta1/cluster_service.proto;l=4957

NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.

.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true];

Parameter
Name Description
value int

The enum numeric value on the wire for nodeMetadata to set.

Returns
Type Description
WorkloadMetadataConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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