Class CreateAccessLevelRequest.Builder (1.54.0)

public static final class CreateAccessLevelRequest.Builder extends GeneratedMessageV3.Builder<CreateAccessLevelRequest.Builder> implements CreateAccessLevelRequestOrBuilder

A request to create an AccessLevel.

Protobuf type google.identity.accesscontextmanager.v1.CreateAccessLevelRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAccessLevelRequest build()
Returns
Type Description
CreateAccessLevelRequest

buildPartial()

public CreateAccessLevelRequest buildPartial()
Returns
Type Description
CreateAccessLevelRequest

clear()

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

clearAccessLevel()

public CreateAccessLevelRequest.Builder clearAccessLevel()

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

.google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateAccessLevelRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateAccessLevelRequest.Builder clearParent()

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

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

Returns
Type Description
CreateAccessLevelRequest.Builder

This builder for chaining.

clone()

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

getAccessLevel()

public AccessLevel getAccessLevel()

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

.google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessLevel

The accessLevel.

getAccessLevelBuilder()

public AccessLevel.Builder getAccessLevelBuilder()

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

.google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessLevel.Builder

getAccessLevelOrBuilder()

public AccessLevelOrBuilder getAccessLevelOrBuilder()

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

.google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessLevelOrBuilder

getDefaultInstanceForType()

public CreateAccessLevelRequest getDefaultInstanceForType()
Returns
Type Description
CreateAccessLevelRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

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

Returns
Type Description
ByteString

The bytes for parent.

hasAccessLevel()

public boolean hasAccessLevel()

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

.google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the accessLevel field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAccessLevel(AccessLevel value)

public CreateAccessLevelRequest.Builder mergeAccessLevel(AccessLevel value)

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

.google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AccessLevel
Returns
Type Description
CreateAccessLevelRequest.Builder

mergeFrom(CreateAccessLevelRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccessLevel(AccessLevel value)

public CreateAccessLevelRequest.Builder setAccessLevel(AccessLevel value)

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

.google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AccessLevel
Returns
Type Description
CreateAccessLevelRequest.Builder

setAccessLevel(AccessLevel.Builder builderForValue)

public CreateAccessLevelRequest.Builder setAccessLevel(AccessLevel.Builder builderForValue)

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

.google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AccessLevel.Builder
Returns
Type Description
CreateAccessLevelRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateAccessLevelRequest.Builder setParent(String value)

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAccessLevelRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAccessLevelRequest.Builder setParentBytes(ByteString value)

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateAccessLevelRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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