Class BinaryAuthorization.Builder (0.29.0)

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

Settings for Binary Authorization feature.

Protobuf type google.cloud.run.v2.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

clearBinauthzMethod()

public BinaryAuthorization.Builder clearBinauthzMethod()
Returns
TypeDescription
BinaryAuthorization.Builder

clearBreakglassJustification()

public BinaryAuthorization.Builder clearBreakglassJustification()

If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass

string breakglass_justification = 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

clearUseDefault()

public BinaryAuthorization.Builder clearUseDefault()

If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.

bool use_default = 1;

Returns
TypeDescription
BinaryAuthorization.Builder

This builder for chaining.

clone()

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

getBinauthzMethodCase()

public BinaryAuthorization.BinauthzMethodCase getBinauthzMethodCase()
Returns
TypeDescription
BinaryAuthorization.BinauthzMethodCase

getBreakglassJustification()

public String getBreakglassJustification()

If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass

string breakglass_justification = 2;

Returns
TypeDescription
String

The breakglassJustification.

getBreakglassJustificationBytes()

public ByteString getBreakglassJustificationBytes()

If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass

string breakglass_justification = 2;

Returns
TypeDescription
ByteString

The bytes for breakglassJustification.

getDefaultInstanceForType()

public BinaryAuthorization getDefaultInstanceForType()
Returns
TypeDescription
BinaryAuthorization

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUseDefault()

public boolean getUseDefault()

If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.

bool use_default = 1;

Returns
TypeDescription
boolean

The useDefault.

hasUseDefault()

public boolean hasUseDefault()

If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.

bool use_default = 1;

Returns
TypeDescription
boolean

Whether the useDefault field is set.

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

setBreakglassJustification(String value)

public BinaryAuthorization.Builder setBreakglassJustification(String value)

If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass

string breakglass_justification = 2;

Parameter
NameDescription
valueString

The breakglassJustification to set.

Returns
TypeDescription
BinaryAuthorization.Builder

This builder for chaining.

setBreakglassJustificationBytes(ByteString value)

public BinaryAuthorization.Builder setBreakglassJustificationBytes(ByteString value)

If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass

string breakglass_justification = 2;

Parameter
NameDescription
valueByteString

The bytes for breakglassJustification 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

setUseDefault(boolean value)

public BinaryAuthorization.Builder setUseDefault(boolean value)

If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.

bool use_default = 1;

Parameter
NameDescription
valueboolean

The useDefault to set.

Returns
TypeDescription
BinaryAuthorization.Builder

This builder for chaining.