Class GetAccessLevelRequest.Builder (1.55.0)

public static final class GetAccessLevelRequest.Builder extends GeneratedMessageV3.Builder<GetAccessLevelRequest.Builder> implements GetAccessLevelRequestOrBuilder

A request to get a particular AccessLevel.

Protobuf type google.identity.accesscontextmanager.v1.GetAccessLevelRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetAccessLevelRequest build()
Returns
Type Description
GetAccessLevelRequest

buildPartial()

public GetAccessLevelRequest buildPartial()
Returns
Type Description
GetAccessLevelRequest

clear()

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

clearAccessLevelFormat()

public GetAccessLevelRequest.Builder clearAccessLevelFormat()

Whether to return BasicLevels in the Cloud Common Expression Language rather than as BasicLevels. Defaults to AS_DEFINED, where [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] are returned as BasicLevels or CustomLevels based on how they were created. If set to CEL, all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] are returned as CustomLevels. In the CEL case, BasicLevels are translated to equivalent CustomLevels.

.google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 2;

Returns
Type Description
GetAccessLevelRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetAccessLevelRequest.Builder clearName()

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetAccessLevelRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAccessLevelFormat()

public LevelFormat getAccessLevelFormat()

Whether to return BasicLevels in the Cloud Common Expression Language rather than as BasicLevels. Defaults to AS_DEFINED, where [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] are returned as BasicLevels or CustomLevels based on how they were created. If set to CEL, all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] are returned as CustomLevels. In the CEL case, BasicLevels are translated to equivalent CustomLevels.

.google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 2;

Returns
Type Description
LevelFormat

The accessLevelFormat.

getAccessLevelFormatValue()

public int getAccessLevelFormatValue()

Whether to return BasicLevels in the Cloud Common Expression Language rather than as BasicLevels. Defaults to AS_DEFINED, where [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] are returned as BasicLevels or CustomLevels based on how they were created. If set to CEL, all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] are returned as CustomLevels. In the CEL case, BasicLevels are translated to equivalent CustomLevels.

.google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 2;

Returns
Type Description
int

The enum numeric value on the wire for accessLevelFormat.

getDefaultInstanceForType()

public GetAccessLevelRequest getDefaultInstanceForType()
Returns
Type Description
GetAccessLevelRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetAccessLevelRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccessLevelFormat(LevelFormat value)

public GetAccessLevelRequest.Builder setAccessLevelFormat(LevelFormat value)

Whether to return BasicLevels in the Cloud Common Expression Language rather than as BasicLevels. Defaults to AS_DEFINED, where [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] are returned as BasicLevels or CustomLevels based on how they were created. If set to CEL, all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] are returned as CustomLevels. In the CEL case, BasicLevels are translated to equivalent CustomLevels.

.google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 2;

Parameter
Name Description
value LevelFormat

The accessLevelFormat to set.

Returns
Type Description
GetAccessLevelRequest.Builder

This builder for chaining.

setAccessLevelFormatValue(int value)

public GetAccessLevelRequest.Builder setAccessLevelFormatValue(int value)

Whether to return BasicLevels in the Cloud Common Expression Language rather than as BasicLevels. Defaults to AS_DEFINED, where [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] are returned as BasicLevels or CustomLevels based on how they were created. If set to CEL, all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] are returned as CustomLevels. In the CEL case, BasicLevels are translated to equivalent CustomLevels.

.google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 2;

Parameter
Name Description
value int

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

Returns
Type Description
GetAccessLevelRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetAccessLevelRequest.Builder setName(String value)

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetAccessLevelRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetAccessLevelRequest.Builder setNameBytes(ByteString value)

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetAccessLevelRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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