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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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.v1.WorkloadMetadataConfig.Mode mode = 2;
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.v1.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.v1.WorkloadMetadataConfig.Mode mode = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for mode.
|
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.v1.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.v1.WorkloadMetadataConfig.Mode mode = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for mode 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