Class BinaryAuthorization.PolicyBinding.Builder (2.57.0)

public static final class BinaryAuthorization.PolicyBinding.Builder extends GeneratedMessageV3.Builder<BinaryAuthorization.PolicyBinding.Builder> implements BinaryAuthorization.PolicyBindingOrBuilder

Binauthz policy that applies to this cluster.

Protobuf type google.container.v1beta1.BinaryAuthorization.PolicyBinding

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BinaryAuthorization.PolicyBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides

build()

public BinaryAuthorization.PolicyBinding build()
Returns
Type Description
BinaryAuthorization.PolicyBinding

buildPartial()

public BinaryAuthorization.PolicyBinding buildPartial()
Returns
Type Description
BinaryAuthorization.PolicyBinding

clear()

public BinaryAuthorization.PolicyBinding.Builder clear()
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BinaryAuthorization.PolicyBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides

clearName()

public BinaryAuthorization.PolicyBinding.Builder clearName()

The relative resource name of the binauthz platform policy to evaluate. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.

optional string name = 1;

Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BinaryAuthorization.PolicyBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides

clone()

public BinaryAuthorization.PolicyBinding.Builder clone()
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides

getDefaultInstanceForType()

public BinaryAuthorization.PolicyBinding getDefaultInstanceForType()
Returns
Type Description
BinaryAuthorization.PolicyBinding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

The relative resource name of the binauthz platform policy to evaluate. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.

optional string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The relative resource name of the binauthz platform policy to evaluate. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.

optional string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasName()

public boolean hasName()

The relative resource name of the binauthz platform policy to evaluate. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.

optional string name = 1;

Returns
Type Description
boolean

Whether the name field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BinaryAuthorization.PolicyBinding other)

public BinaryAuthorization.PolicyBinding.Builder mergeFrom(BinaryAuthorization.PolicyBinding other)
Parameter
Name Description
other BinaryAuthorization.PolicyBinding
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BinaryAuthorization.PolicyBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BinaryAuthorization.PolicyBinding.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BinaryAuthorization.PolicyBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BinaryAuthorization.PolicyBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides

setName(String value)

public BinaryAuthorization.PolicyBinding.Builder setName(String value)

The relative resource name of the binauthz platform policy to evaluate. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.

optional string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BinaryAuthorization.PolicyBinding.Builder setNameBytes(ByteString value)

The relative resource name of the binauthz platform policy to evaluate. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.

optional string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BinaryAuthorization.PolicyBinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BinaryAuthorization.PolicyBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BinaryAuthorization.PolicyBinding.Builder
Overrides