Class WorkloadMetadataConfig.Builder (2.42.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkloadMetadataConfig build()
Returns
TypeDescription
WorkloadMetadataConfig

buildPartial()

public WorkloadMetadataConfig buildPartial()
Returns
TypeDescription
WorkloadMetadataConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public WorkloadMetadataConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
WorkloadMetadataConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public WorkloadMetadataConfig getDefaultInstanceForType()
Returns
TypeDescription
WorkloadMetadataConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for mode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkloadMetadataConfig other)

public WorkloadMetadataConfig.Builder mergeFrom(WorkloadMetadataConfig other)
Parameter
NameDescription
otherWorkloadMetadataConfig
Returns
TypeDescription
WorkloadMetadataConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public WorkloadMetadataConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueWorkloadMetadataConfig.Mode

The mode to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WorkloadMetadataConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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