Class AccessLevel.Builder (1.6.0)

public static final class AccessLevel.Builder extends GeneratedMessageV3.Builder<AccessLevel.Builder> implements AccessLevelOrBuilder

An AccessLevel is a label that can be applied to requests to Google Cloud services, along with a list of requirements necessary for the label to be applied.

Protobuf type google.identity.accesscontextmanager.v1.AccessLevel

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessLevel build()
Returns
TypeDescription
AccessLevel

buildPartial()

public AccessLevel buildPartial()
Returns
TypeDescription
AccessLevel

clear()

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

clearBasic()

public AccessLevel.Builder clearBasic()

A BasicLevel composed of Conditions.

.google.identity.accesscontextmanager.v1.BasicLevel basic = 4;

Returns
TypeDescription
AccessLevel.Builder

clearCreateTime()

public AccessLevel.Builder clearCreateTime()

Output only. Time the AccessLevel was created in UTC.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
AccessLevel.Builder

clearCustom()

public AccessLevel.Builder clearCustom()

A CustomLevel written in the Common Expression Language.

.google.identity.accesscontextmanager.v1.CustomLevel custom = 5;

Returns
TypeDescription
AccessLevel.Builder

clearDescription()

public AccessLevel.Builder clearDescription()

Description of the AccessLevel and its use. Does not affect behavior.

string description = 3;

Returns
TypeDescription
AccessLevel.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLevel()

public AccessLevel.Builder clearLevel()
Returns
TypeDescription
AccessLevel.Builder

clearName()

public AccessLevel.Builder clearName()

Required. Resource name for the Access Level. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum length of the access_level component is 50 characters.

string name = 1;

Returns
TypeDescription
AccessLevel.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTitle()

public AccessLevel.Builder clearTitle()

Human readable title. Must be unique within the Policy.

string title = 2;

Returns
TypeDescription
AccessLevel.Builder

This builder for chaining.

clearUpdateTime()

public AccessLevel.Builder clearUpdateTime()

Output only. Time the AccessLevel was updated in UTC.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
AccessLevel.Builder

clone()

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

getBasic()

public BasicLevel getBasic()

A BasicLevel composed of Conditions.

.google.identity.accesscontextmanager.v1.BasicLevel basic = 4;

Returns
TypeDescription
BasicLevel

The basic.

getBasicBuilder()

public BasicLevel.Builder getBasicBuilder()

A BasicLevel composed of Conditions.

.google.identity.accesscontextmanager.v1.BasicLevel basic = 4;

Returns
TypeDescription
BasicLevel.Builder

getBasicOrBuilder()

public BasicLevelOrBuilder getBasicOrBuilder()

A BasicLevel composed of Conditions.

.google.identity.accesscontextmanager.v1.BasicLevel basic = 4;

Returns
TypeDescription
BasicLevelOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Time the AccessLevel was created in UTC.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time the AccessLevel was created in UTC.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time the AccessLevel was created in UTC.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getCustom()

public CustomLevel getCustom()

A CustomLevel written in the Common Expression Language.

.google.identity.accesscontextmanager.v1.CustomLevel custom = 5;

Returns
TypeDescription
CustomLevel

The custom.

getCustomBuilder()

public CustomLevel.Builder getCustomBuilder()

A CustomLevel written in the Common Expression Language.

.google.identity.accesscontextmanager.v1.CustomLevel custom = 5;

Returns
TypeDescription
CustomLevel.Builder

getCustomOrBuilder()

public CustomLevelOrBuilder getCustomOrBuilder()

A CustomLevel written in the Common Expression Language.

.google.identity.accesscontextmanager.v1.CustomLevel custom = 5;

Returns
TypeDescription
CustomLevelOrBuilder

getDefaultInstanceForType()

public AccessLevel getDefaultInstanceForType()
Returns
TypeDescription
AccessLevel

getDescription()

public String getDescription()

Description of the AccessLevel and its use. Does not affect behavior.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the AccessLevel and its use. Does not affect behavior.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLevelCase()

public AccessLevel.LevelCase getLevelCase()
Returns
TypeDescription
AccessLevel.LevelCase

getName()

public String getName()

Required. Resource name for the Access Level. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum length of the access_level component is 50 characters.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name for the Access Level. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum length of the access_level component is 50 characters.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getTitle()

public String getTitle()

Human readable title. Must be unique within the Policy.

string title = 2;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Human readable title. Must be unique within the Policy.

string title = 2;

Returns
TypeDescription
ByteString

The bytes for title.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time the AccessLevel was updated in UTC.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time the AccessLevel was updated in UTC.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time the AccessLevel was updated in UTC.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
TimestampOrBuilder

hasBasic()

public boolean hasBasic()

A BasicLevel composed of Conditions.

.google.identity.accesscontextmanager.v1.BasicLevel basic = 4;

Returns
TypeDescription
boolean

Whether the basic field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time the AccessLevel was created in UTC.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasCustom()

public boolean hasCustom()

A CustomLevel written in the Common Expression Language.

.google.identity.accesscontextmanager.v1.CustomLevel custom = 5;

Returns
TypeDescription
boolean

Whether the custom field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time the AccessLevel was updated in UTC.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBasic(BasicLevel value)

public AccessLevel.Builder mergeBasic(BasicLevel value)

A BasicLevel composed of Conditions.

.google.identity.accesscontextmanager.v1.BasicLevel basic = 4;

Parameter
NameDescription
valueBasicLevel
Returns
TypeDescription
AccessLevel.Builder

mergeCreateTime(Timestamp value)

public AccessLevel.Builder mergeCreateTime(Timestamp value)

Output only. Time the AccessLevel was created in UTC.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AccessLevel.Builder

mergeCustom(CustomLevel value)

public AccessLevel.Builder mergeCustom(CustomLevel value)

A CustomLevel written in the Common Expression Language.

.google.identity.accesscontextmanager.v1.CustomLevel custom = 5;

Parameter
NameDescription
valueCustomLevel
Returns
TypeDescription
AccessLevel.Builder

mergeFrom(AccessLevel other)

public AccessLevel.Builder mergeFrom(AccessLevel other)
Parameter
NameDescription
otherAccessLevel
Returns
TypeDescription
AccessLevel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccessLevel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AccessLevel.Builder
Overrides

mergeUpdateTime(Timestamp value)

public AccessLevel.Builder mergeUpdateTime(Timestamp value)

Output only. Time the AccessLevel was updated in UTC.

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AccessLevel.Builder

setBasic(BasicLevel value)

public AccessLevel.Builder setBasic(BasicLevel value)

A BasicLevel composed of Conditions.

.google.identity.accesscontextmanager.v1.BasicLevel basic = 4;

Parameter
NameDescription
valueBasicLevel
Returns
TypeDescription
AccessLevel.Builder

setBasic(BasicLevel.Builder builderForValue)

public AccessLevel.Builder setBasic(BasicLevel.Builder builderForValue)

A BasicLevel composed of Conditions.

.google.identity.accesscontextmanager.v1.BasicLevel basic = 4;

Parameter
NameDescription
builderForValueBasicLevel.Builder
Returns
TypeDescription
AccessLevel.Builder

setCreateTime(Timestamp value)

public AccessLevel.Builder setCreateTime(Timestamp value)

Output only. Time the AccessLevel was created in UTC.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AccessLevel.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AccessLevel.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time the AccessLevel was created in UTC.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AccessLevel.Builder

setCustom(CustomLevel value)

public AccessLevel.Builder setCustom(CustomLevel value)

A CustomLevel written in the Common Expression Language.

.google.identity.accesscontextmanager.v1.CustomLevel custom = 5;

Parameter
NameDescription
valueCustomLevel
Returns
TypeDescription
AccessLevel.Builder

setCustom(CustomLevel.Builder builderForValue)

public AccessLevel.Builder setCustom(CustomLevel.Builder builderForValue)

A CustomLevel written in the Common Expression Language.

.google.identity.accesscontextmanager.v1.CustomLevel custom = 5;

Parameter
NameDescription
builderForValueCustomLevel.Builder
Returns
TypeDescription
AccessLevel.Builder

setDescription(String value)

public AccessLevel.Builder setDescription(String value)

Description of the AccessLevel and its use. Does not affect behavior.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
AccessLevel.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AccessLevel.Builder setDescriptionBytes(ByteString value)

Description of the AccessLevel and its use. Does not affect behavior.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
AccessLevel.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AccessLevel.Builder setName(String value)

Required. Resource name for the Access Level. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum length of the access_level component is 50 characters.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AccessLevel.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AccessLevel.Builder setNameBytes(ByteString value)

Required. Resource name for the Access Level. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum length of the access_level component is 50 characters.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AccessLevel.Builder

This builder for chaining.

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

public AccessLevel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AccessLevel.Builder
Overrides

setTitle(String value)

public AccessLevel.Builder setTitle(String value)

Human readable title. Must be unique within the Policy.

string title = 2;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
AccessLevel.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public AccessLevel.Builder setTitleBytes(ByteString value)

Human readable title. Must be unique within the Policy.

string title = 2;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
AccessLevel.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public AccessLevel.Builder setUpdateTime(Timestamp value)

Output only. Time the AccessLevel was updated in UTC.

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
AccessLevel.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AccessLevel.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time the AccessLevel was updated in UTC.

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AccessLevel.Builder