Class CreateAccessLevelRequest.Builder (1.21.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAccessLevelRequest build()
Returns
TypeDescription
CreateAccessLevelRequest

buildPartial()

public CreateAccessLevelRequest buildPartial()
Returns
TypeDescription
CreateAccessLevelRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateAccessLevelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateAccessLevelRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateAccessLevelRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAccessLevelRequest

getDescriptorForType()

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

Whether the accessLevel field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAccessLevel
Returns
TypeDescription
CreateAccessLevelRequest.Builder

mergeFrom(CreateAccessLevelRequest other)

public CreateAccessLevelRequest.Builder mergeFrom(CreateAccessLevelRequest other)
Parameter
NameDescription
otherCreateAccessLevelRequest
Returns
TypeDescription
CreateAccessLevelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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