Class WorkloadMetadataConfig.Builder (2.45.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.v1.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.v1.WorkloadMetadataConfig.Mode mode = 2;

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.v1.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.v1.WorkloadMetadataConfig.Mode mode = 2;

Returns
Type Description
int

The enum numeric value on the wire for mode.

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.v1.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.v1.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.

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