Class AttachedClustersAuthorization.Builder (0.11.0)

public static final class AttachedClustersAuthorization.Builder extends GeneratedMessageV3.Builder<AttachedClustersAuthorization.Builder> implements AttachedClustersAuthorizationOrBuilder

Configuration related to the cluster RBAC settings.

Protobuf type google.cloud.gkemulticloud.v1.AttachedClustersAuthorization

Static Methods

getDescriptor()

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

Methods

addAdminUsers(AttachedClusterUser value)

public AttachedClustersAuthorization.Builder addAdminUsers(AttachedClusterUser value)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAttachedClusterUser
Returns
TypeDescription
AttachedClustersAuthorization.Builder

addAdminUsers(AttachedClusterUser.Builder builderForValue)

public AttachedClustersAuthorization.Builder addAdminUsers(AttachedClusterUser.Builder builderForValue)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueAttachedClusterUser.Builder
Returns
TypeDescription
AttachedClustersAuthorization.Builder

addAdminUsers(int index, AttachedClusterUser value)

public AttachedClustersAuthorization.Builder addAdminUsers(int index, AttachedClusterUser value)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueAttachedClusterUser
Returns
TypeDescription
AttachedClustersAuthorization.Builder

addAdminUsers(int index, AttachedClusterUser.Builder builderForValue)

public AttachedClustersAuthorization.Builder addAdminUsers(int index, AttachedClusterUser.Builder builderForValue)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueAttachedClusterUser.Builder
Returns
TypeDescription
AttachedClustersAuthorization.Builder

addAdminUsersBuilder()

public AttachedClusterUser.Builder addAdminUsersBuilder()

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachedClusterUser.Builder

addAdminUsersBuilder(int index)

public AttachedClusterUser.Builder addAdminUsersBuilder(int index)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedClusterUser.Builder

addAllAdminUsers(Iterable<? extends AttachedClusterUser> values)

public AttachedClustersAuthorization.Builder addAllAdminUsers(Iterable<? extends AttachedClusterUser> values)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.gkemulticloud.v1.AttachedClusterUser>
Returns
TypeDescription
AttachedClustersAuthorization.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttachedClustersAuthorization build()
Returns
TypeDescription
AttachedClustersAuthorization

buildPartial()

public AttachedClustersAuthorization buildPartial()
Returns
TypeDescription
AttachedClustersAuthorization

clear()

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

clearAdminUsers()

public AttachedClustersAuthorization.Builder clearAdminUsers()

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachedClustersAuthorization.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAdminUsers(int index)

public AttachedClusterUser getAdminUsers(int index)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedClusterUser

getAdminUsersBuilder(int index)

public AttachedClusterUser.Builder getAdminUsersBuilder(int index)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedClusterUser.Builder

getAdminUsersBuilderList()

public List<AttachedClusterUser.Builder> getAdminUsersBuilderList()

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getAdminUsersCount()

public int getAdminUsersCount()

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getAdminUsersList()

public List<AttachedClusterUser> getAdminUsersList()

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<AttachedClusterUser>

getAdminUsersOrBuilder(int index)

public AttachedClusterUserOrBuilder getAdminUsersOrBuilder(int index)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedClusterUserOrBuilder

getAdminUsersOrBuilderList()

public List<? extends AttachedClusterUserOrBuilder> getAdminUsersOrBuilderList()

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.gkemulticloud.v1.AttachedClusterUserOrBuilder>

getDefaultInstanceForType()

public AttachedClustersAuthorization getDefaultInstanceForType()
Returns
TypeDescription
AttachedClustersAuthorization

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttachedClustersAuthorization other)

public AttachedClustersAuthorization.Builder mergeFrom(AttachedClustersAuthorization other)
Parameter
NameDescription
otherAttachedClustersAuthorization
Returns
TypeDescription
AttachedClustersAuthorization.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdminUsers(int index)

public AttachedClustersAuthorization.Builder removeAdminUsers(int index)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedClustersAuthorization.Builder

setAdminUsers(int index, AttachedClusterUser value)

public AttachedClustersAuthorization.Builder setAdminUsers(int index, AttachedClusterUser value)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueAttachedClusterUser
Returns
TypeDescription
AttachedClustersAuthorization.Builder

setAdminUsers(int index, AttachedClusterUser.Builder builderForValue)

public AttachedClustersAuthorization.Builder setAdminUsers(int index, AttachedClusterUser.Builder builderForValue)

Required. Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles

repeated .google.cloud.gkemulticloud.v1.AttachedClusterUser admin_users = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueAttachedClusterUser.Builder
Returns
TypeDescription
AttachedClustersAuthorization.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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