Class GetAccessLevelRequest.Builder (1.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetAccessLevelRequest build()
Returns
TypeDescription
GetAccessLevelRequest

buildPartial()

public GetAccessLevelRequest buildPartial()
Returns
TypeDescription
GetAccessLevelRequest

clear()

public GetAccessLevelRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
GetAccessLevelRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GetAccessLevelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetAccessLevelRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GetAccessLevelRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for accessLevelFormat.

getDefaultInstanceForType()

public GetAccessLevelRequest getDefaultInstanceForType()
Returns
TypeDescription
GetAccessLevelRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetAccessLevelRequest other)

public GetAccessLevelRequest.Builder mergeFrom(GetAccessLevelRequest other)
Parameter
NameDescription
otherGetAccessLevelRequest
Returns
TypeDescription
GetAccessLevelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetAccessLevelRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueLevelFormat

The accessLevelFormat to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
GetAccessLevelRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GetAccessLevelRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetAccessLevelRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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