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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public WorkloadMetadataConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public WorkloadMetadataConfig build()
Returns
public WorkloadMetadataConfig buildPartial()
Returns
public WorkloadMetadataConfig.Builder clear()
Returns
Overrides
public WorkloadMetadataConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
public WorkloadMetadataConfig.Builder clearNodeMetadata()
Deprecated. google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See
google/container/v1beta1/cluster_service.proto;l=4185
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
public WorkloadMetadataConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public WorkloadMetadataConfig.Builder clone()
Returns
Overrides
public WorkloadMetadataConfig getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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.
|
public WorkloadMetadataConfig.NodeMetadata getNodeMetadata()
Deprecated. google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See
google/container/v1beta1/cluster_service.proto;l=4185
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
public int getNodeMetadataValue()
Deprecated. google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See
google/container/v1beta1/cluster_service.proto;l=4185
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public WorkloadMetadataConfig.Builder mergeFrom(WorkloadMetadataConfig other)
Parameter
Returns
public WorkloadMetadataConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public WorkloadMetadataConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final WorkloadMetadataConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public WorkloadMetadataConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
public WorkloadMetadataConfig.Builder setNodeMetadata(WorkloadMetadataConfig.NodeMetadata value)
Deprecated. google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See
google/container/v1beta1/cluster_service.proto;l=4185
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
Returns
public WorkloadMetadataConfig.Builder setNodeMetadataValue(int value)
Deprecated. google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See
google/container/v1beta1/cluster_service.proto;l=4185
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
public WorkloadMetadataConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final WorkloadMetadataConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides