Class BinaryAuthorization.PolicyBinding.Builder (2.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BinaryAuthorization.PolicyBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides

build()

public BinaryAuthorization.PolicyBinding build()
Returns
TypeDescription
BinaryAuthorization.PolicyBinding

buildPartial()

public BinaryAuthorization.PolicyBinding buildPartial()
Returns
TypeDescription
BinaryAuthorization.PolicyBinding

clear()

public BinaryAuthorization.PolicyBinding.Builder clear()
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BinaryAuthorization.PolicyBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides

clearName()

public BinaryAuthorization.PolicyBinding.Builder clearName()

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

optional string name = 1;

Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BinaryAuthorization.PolicyBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides

clone()

public BinaryAuthorization.PolicyBinding.Builder clone()
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides

getDefaultInstanceForType()

public BinaryAuthorization.PolicyBinding getDefaultInstanceForType()
Returns
TypeDescription
BinaryAuthorization.PolicyBinding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

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

optional string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

optional string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

hasName()

public boolean hasName()

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

optional string name = 1;

Returns
TypeDescription
boolean

Whether the name field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BinaryAuthorization.PolicyBinding other)

public BinaryAuthorization.PolicyBinding.Builder mergeFrom(BinaryAuthorization.PolicyBinding other)
Parameter
NameDescription
otherBinaryAuthorization.PolicyBinding
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BinaryAuthorization.PolicyBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BinaryAuthorization.PolicyBinding.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BinaryAuthorization.PolicyBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BinaryAuthorization.PolicyBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides

setName(String value)

public BinaryAuthorization.PolicyBinding.Builder setName(String value)

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

optional string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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 audit. GKE platform policies have the following format: projects/{project_number}/platforms/gke/policies/{policy_id}.

optional string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BinaryAuthorization.PolicyBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BinaryAuthorization.PolicyBinding.Builder
Overrides