Class BinauthzConfig.Builder (1.27.0)

public static final class BinauthzConfig.Builder extends GeneratedMessageV3.Builder<BinauthzConfig.Builder> implements BinauthzConfigOrBuilder

Configuration for Binauthz

Protobuf type google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BinauthzConfig build()
Returns
TypeDescription
BinauthzConfig

buildPartial()

public BinauthzConfig buildPartial()
Returns
TypeDescription
BinauthzConfig

clear()

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

clearEnabled()

public BinauthzConfig.Builder clearEnabled()

Whether binauthz is enabled in this cluster.

bool enabled = 1;

Returns
TypeDescription
BinauthzConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BinauthzConfig getDefaultInstanceForType()
Returns
TypeDescription
BinauthzConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether binauthz is enabled in this cluster.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BinauthzConfig other)

public BinauthzConfig.Builder mergeFrom(BinauthzConfig other)
Parameter
NameDescription
otherBinauthzConfig
Returns
TypeDescription
BinauthzConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public BinauthzConfig.Builder setEnabled(boolean value)

Whether binauthz is enabled in this cluster.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
BinauthzConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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