Class WorkloadPolicyConfig (2.27.0)

public final class WorkloadPolicyConfig extends GeneratedMessageV3 implements WorkloadPolicyConfigOrBuilder

WorkloadPolicyConfig is the configuration of workload policy for autopilot clusters.

Protobuf type google.container.v1.WorkloadPolicyConfig

Static Fields

ALLOW_NET_ADMIN_FIELD_NUMBER

public static final int ALLOW_NET_ADMIN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WorkloadPolicyConfig getDefaultInstance()
Returns
TypeDescription
WorkloadPolicyConfig

getDescriptor()

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

newBuilder()

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

newBuilder(WorkloadPolicyConfig prototype)

public static WorkloadPolicyConfig.Builder newBuilder(WorkloadPolicyConfig prototype)
Parameter
NameDescription
prototypeWorkloadPolicyConfig
Returns
TypeDescription
WorkloadPolicyConfig.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAllowNetAdmin()

public boolean getAllowNetAdmin()

If true, workloads can use NET_ADMIN capability.

optional bool allow_net_admin = 1;

Returns
TypeDescription
boolean

The allowNetAdmin.

getDefaultInstanceForType()

public WorkloadPolicyConfig getDefaultInstanceForType()
Returns
TypeDescription
WorkloadPolicyConfig

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasAllowNetAdmin()

public boolean hasAllowNetAdmin()

If true, workloads can use NET_ADMIN capability.

optional bool allow_net_admin = 1;

Returns
TypeDescription
boolean

Whether the allowNetAdmin 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 WorkloadPolicyConfig.Builder newBuilderForType()
Returns
TypeDescription
WorkloadPolicyConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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