Class Authorization.Builder (0.40.0)

public static final class Authorization.Builder extends GeneratedMessageV3.Builder<Authorization.Builder> implements AuthorizationOrBuilder

RBAC policy that will be applied and managed by GEC.

Protobuf type google.cloud.edgecontainer.v1.Authorization

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Authorization build()
Returns
Type Description
Authorization

buildPartial()

public Authorization buildPartial()
Returns
Type Description
Authorization

clear()

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

clearAdminUsers()

public Authorization.Builder clearAdminUsers()

Required. User that will be granted the cluster-admin role on the cluster, providing full access to the cluster. Currently, this is a singular field, but will be expanded to allow multiple admins in the future.

.google.cloud.edgecontainer.v1.ClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Authorization.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAdminUsers()

public ClusterUser getAdminUsers()

Required. User that will be granted the cluster-admin role on the cluster, providing full access to the cluster. Currently, this is a singular field, but will be expanded to allow multiple admins in the future.

.google.cloud.edgecontainer.v1.ClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ClusterUser

The adminUsers.

getAdminUsersBuilder()

public ClusterUser.Builder getAdminUsersBuilder()

Required. User that will be granted the cluster-admin role on the cluster, providing full access to the cluster. Currently, this is a singular field, but will be expanded to allow multiple admins in the future.

.google.cloud.edgecontainer.v1.ClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ClusterUser.Builder

getAdminUsersOrBuilder()

public ClusterUserOrBuilder getAdminUsersOrBuilder()

Required. User that will be granted the cluster-admin role on the cluster, providing full access to the cluster. Currently, this is a singular field, but will be expanded to allow multiple admins in the future.

.google.cloud.edgecontainer.v1.ClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ClusterUserOrBuilder

getDefaultInstanceForType()

public Authorization getDefaultInstanceForType()
Returns
Type Description
Authorization

getDescriptorForType()

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

hasAdminUsers()

public boolean hasAdminUsers()

Required. User that will be granted the cluster-admin role on the cluster, providing full access to the cluster. Currently, this is a singular field, but will be expanded to allow multiple admins in the future.

.google.cloud.edgecontainer.v1.ClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the adminUsers field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdminUsers(ClusterUser value)

public Authorization.Builder mergeAdminUsers(ClusterUser value)

Required. User that will be granted the cluster-admin role on the cluster, providing full access to the cluster. Currently, this is a singular field, but will be expanded to allow multiple admins in the future.

.google.cloud.edgecontainer.v1.ClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ClusterUser
Returns
Type Description
Authorization.Builder

mergeFrom(Authorization other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAdminUsers(ClusterUser value)

public Authorization.Builder setAdminUsers(ClusterUser value)

Required. User that will be granted the cluster-admin role on the cluster, providing full access to the cluster. Currently, this is a singular field, but will be expanded to allow multiple admins in the future.

.google.cloud.edgecontainer.v1.ClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ClusterUser
Returns
Type Description
Authorization.Builder

setAdminUsers(ClusterUser.Builder builderForValue)

public Authorization.Builder setAdminUsers(ClusterUser.Builder builderForValue)

Required. User that will be granted the cluster-admin role on the cluster, providing full access to the cluster. Currently, this is a singular field, but will be expanded to allow multiple admins in the future.

.google.cloud.edgecontainer.v1.ClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ClusterUser.Builder
Returns
Type Description
Authorization.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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