Class SetLegacyAbacRequest.Builder (2.20.0)

public static final class SetLegacyAbacRequest.Builder extends GeneratedMessageV3.Builder<SetLegacyAbacRequest.Builder> implements SetLegacyAbacRequestOrBuilder

SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for a cluster.

Protobuf type google.container.v1.SetLegacyAbacRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetLegacyAbacRequest build()
Returns
TypeDescription
SetLegacyAbacRequest

buildPartial()

public SetLegacyAbacRequest buildPartial()
Returns
TypeDescription
SetLegacyAbacRequest

clear()

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

clearClusterId() (deprecated)

public SetLegacyAbacRequest.Builder clearClusterId()

Deprecated. google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3797

Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
SetLegacyAbacRequest.Builder

This builder for chaining.

clearEnabled()

public SetLegacyAbacRequest.Builder clearEnabled()

Required. Whether ABAC authorization will be enabled in the cluster.

bool enabled = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SetLegacyAbacRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SetLegacyAbacRequest.Builder clearName()

The name (project, location, cluster name) of the cluster to set legacy abac. Specified in the format projects/*/locations/*/clusters/*.

string name = 6;

Returns
TypeDescription
SetLegacyAbacRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId() (deprecated)

public SetLegacyAbacRequest.Builder clearProjectId()

Deprecated. google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3787

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
SetLegacyAbacRequest.Builder

This builder for chaining.

clearZone() (deprecated)

public SetLegacyAbacRequest.Builder clearZone()

Deprecated. google.container.v1.SetLegacyAbacRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3793

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];

Returns
TypeDescription
SetLegacyAbacRequest.Builder

This builder for chaining.

clone()

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

getClusterId() (deprecated)

public String getClusterId()

Deprecated. google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3797

Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes() (deprecated)

public ByteString getClusterIdBytes()

Deprecated. google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3797

Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

public SetLegacyAbacRequest getDefaultInstanceForType()
Returns
TypeDescription
SetLegacyAbacRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Required. Whether ABAC authorization will be enabled in the cluster.

bool enabled = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

The enabled.

getName()

public String getName()

The name (project, location, cluster name) of the cluster to set legacy abac. Specified in the format projects/*/locations/*/clusters/*.

string name = 6;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name (project, location, cluster name) of the cluster to set legacy abac. Specified in the format projects/*/locations/*/clusters/*.

string name = 6;

Returns
TypeDescription
ByteString

The bytes for name.

getProjectId() (deprecated)

public String getProjectId()

Deprecated. google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3787

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
String

The projectId.

getProjectIdBytes() (deprecated)

public ByteString getProjectIdBytes()

Deprecated. google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3787

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for projectId.

getZone() (deprecated)

public String getZone()

Deprecated. google.container.v1.SetLegacyAbacRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3793

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true];