Class BinaryAuthorization.Builder (2.5.0)

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

Configuration for Binary Authorization.

Protobuf type google.container.v1beta1.BinaryAuthorization

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BinaryAuthorization build()
Returns
TypeDescription
BinaryAuthorization

buildPartial()

public BinaryAuthorization buildPartial()
Returns
TypeDescription
BinaryAuthorization

clear()

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

clearEnabled()

public BinaryAuthorization.Builder clearEnabled()

Enable Binary Authorization for this cluster. If enabled, all container images will be validated by Binary Authorization.

bool enabled = 1;

Returns
TypeDescription
BinaryAuthorization.Builder

This builder for chaining.

clearEvaluationMode()

public BinaryAuthorization.Builder clearEvaluationMode()

Mode of operation for binauthz policy evaluation. Currently the only options are equivalent to enable/disable. If unspecified, defaults to DISABLED.

.google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2;

Returns
TypeDescription
BinaryAuthorization.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BinaryAuthorization getDefaultInstanceForType()
Returns
TypeDescription
BinaryAuthorization

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Enable Binary Authorization for this cluster. If enabled, all container images will be validated by Binary Authorization.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getEvaluationMode()

public BinaryAuthorization.EvaluationMode getEvaluationMode()

Mode of operation for binauthz policy evaluation. Currently the only options are equivalent to enable/disable. If unspecified, defaults to DISABLED.

.google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2;

Returns
TypeDescription
BinaryAuthorization.EvaluationMode

The evaluationMode.

getEvaluationModeValue()

public int getEvaluationModeValue()

Mode of operation for binauthz policy evaluation. Currently the only options are equivalent to enable/disable. If unspecified, defaults to DISABLED.

.google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for evaluationMode.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BinaryAuthorization other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public BinaryAuthorization.Builder setEnabled(boolean value)

Enable Binary Authorization for this cluster. If enabled, all container images will be validated by Binary Authorization.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
BinaryAuthorization.Builder

This builder for chaining.

setEvaluationMode(BinaryAuthorization.EvaluationMode value)

public BinaryAuthorization.Builder setEvaluationMode(BinaryAuthorization.EvaluationMode value)

Mode of operation for binauthz policy evaluation. Currently the only options are equivalent to enable/disable. If unspecified, defaults to DISABLED.

.google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2;

Parameter
NameDescription
valueBinaryAuthorization.EvaluationMode

The evaluationMode to set.

Returns
TypeDescription
BinaryAuthorization.Builder

This builder for chaining.

setEvaluationModeValue(int value)

public BinaryAuthorization.Builder setEvaluationModeValue(int value)

Mode of operation for binauthz policy evaluation. Currently the only options are equivalent to enable/disable. If unspecified, defaults to DISABLED.

.google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for evaluationMode to set.

Returns
TypeDescription
BinaryAuthorization.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BinaryAuthorization.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BinaryAuthorization.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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