Class Authorization.Builder (0.8.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Authorization build()
Returns
TypeDescription
Authorization

buildPartial()

public Authorization buildPartial()
Returns
TypeDescription
Authorization

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Authorization getDefaultInstanceForType()
Returns
TypeDescription
Authorization

getDescriptorForType()

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

Whether the adminUsers field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(Authorization other)

public Authorization.Builder mergeFrom(Authorization other)
Parameter
NameDescription
otherAuthorization
Returns
TypeDescription
Authorization.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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