Class BinaryAuthorization.Builder (0.52.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BinaryAuthorization build()
Returns
Type Description
BinaryAuthorization

buildPartial()

public BinaryAuthorization buildPartial()
Returns
Type Description
BinaryAuthorization

clear()

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

clearBinauthzMethod()

public BinaryAuthorization.Builder clearBinauthzMethod()
Returns
Type Description
BinaryAuthorization.Builder

clearBreakglassJustification()

public BinaryAuthorization.Builder clearBreakglassJustification()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BinaryAuthorization.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicy()

public BinaryAuthorization.Builder clearPolicy()

Optional. The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}

string policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
BinaryAuthorization.Builder

This builder for chaining.

clearUseDefault()

public BinaryAuthorization.Builder clearUseDefault()

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

bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BinaryAuthorization.Builder

This builder for chaining.

clone()

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

getBinauthzMethodCase()

public BinaryAuthorization.BinauthzMethodCase getBinauthzMethodCase()
Returns
Type Description
BinaryAuthorization.BinauthzMethodCase

getBreakglassJustification()

public String getBreakglassJustification()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The breakglassJustification.

getBreakglassJustificationBytes()

public ByteString getBreakglassJustificationBytes()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for breakglassJustification.

getDefaultInstanceForType()

public BinaryAuthorization getDefaultInstanceForType()
Returns
Type Description
BinaryAuthorization

getDescriptorForType()

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

getPolicy()

public String getPolicy()

Optional. The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}

string policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The policy.

getPolicyBytes()

public ByteString getPolicyBytes()

Optional. The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}

string policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for policy.

getUseDefault()

public boolean getUseDefault()

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

bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The useDefault.

hasPolicy()

public boolean hasPolicy()

Optional. The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}

string policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the policy field is set.

hasUseDefault()

public boolean hasUseDefault()

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

bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the useDefault 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 other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBreakglassJustification(String value)

public BinaryAuthorization.Builder setBreakglassJustification(String value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The breakglassJustification to set.

Returns
Type Description
BinaryAuthorization.Builder

This builder for chaining.

setBreakglassJustificationBytes(ByteString value)

public BinaryAuthorization.Builder setBreakglassJustificationBytes(ByteString value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for breakglassJustification to set.

Returns
Type Description
BinaryAuthorization.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicy(String value)

public BinaryAuthorization.Builder setPolicy(String value)

Optional. The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}

string policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The policy to set.

Returns
Type Description
BinaryAuthorization.Builder

This builder for chaining.

setPolicyBytes(ByteString value)

public BinaryAuthorization.Builder setPolicyBytes(ByteString value)

Optional. The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}

string policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for policy to set.

Returns
Type Description
BinaryAuthorization.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUseDefault(boolean value)

public BinaryAuthorization.Builder setUseDefault(boolean value)

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

bool use_default = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The useDefault to set.

Returns
Type Description
BinaryAuthorization.Builder

This builder for chaining.