Class WorkloadConfig (2.38.0)

public final class WorkloadConfig extends GeneratedMessageV3 implements WorkloadConfigOrBuilder

WorkloadConfig defines the flags to enable or disable the workload configurations for the cluster.

Protobuf type google.container.v1beta1.WorkloadConfig

Static Fields

AUDIT_MODE_FIELD_NUMBER

public static final int AUDIT_MODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WorkloadConfig getDefaultInstance()
Returns
TypeDescription
WorkloadConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static WorkloadConfig.Builder newBuilder()
Returns
TypeDescription
WorkloadConfig.Builder

newBuilder(WorkloadConfig prototype)

public static WorkloadConfig.Builder newBuilder(WorkloadConfig prototype)
Parameter
NameDescription
prototypeWorkloadConfig
Returns
TypeDescription
WorkloadConfig.Builder

parseDelimitedFrom(InputStream input)

public static WorkloadConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkloadConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static WorkloadConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WorkloadConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WorkloadConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WorkloadConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WorkloadConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkloadConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static WorkloadConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkloadConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static WorkloadConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WorkloadConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkloadConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<WorkloadConfig> parser()
Returns
TypeDescription
Parser<WorkloadConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAuditMode()

public WorkloadConfig.Mode getAuditMode()

Sets which mode of auditing should be used for the cluster's workloads.

optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1;

Returns
TypeDescription
WorkloadConfig.Mode

The auditMode.

getAuditModeValue()

public int getAuditModeValue()

Sets which mode of auditing should be used for the cluster's workloads.

optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for auditMode.

getDefaultInstanceForType()

public WorkloadConfig getDefaultInstanceForType()
Returns
TypeDescription
WorkloadConfig

getParserForType()

public Parser<WorkloadConfig> getParserForType()
Returns
TypeDescription
Parser<WorkloadConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasAuditMode()

public boolean hasAuditMode()

Sets which mode of auditing should be used for the cluster's workloads.

optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1;

Returns
TypeDescription
boolean

Whether the auditMode field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public WorkloadConfig.Builder newBuilderForType()
Returns
TypeDescription
WorkloadConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WorkloadConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
WorkloadConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public WorkloadConfig.Builder toBuilder()
Returns
TypeDescription
WorkloadConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException