Interface RBACRoleBinding.RoleOrBuilder (1.85.0)

public static interface RBACRoleBinding.RoleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCustomRole()

public abstract String getCustomRole()

Optional. custom_role is the name of a custom KubernetesClusterRole to use.

string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The customRole.

getCustomRoleBytes()

public abstract ByteString getCustomRoleBytes()

Optional. custom_role is the name of a custom KubernetesClusterRole to use.

string custom_role = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for customRole.

getPredefinedRole()

public abstract RBACRoleBinding.Role.PredefinedRoles getPredefinedRole()

predefined_role is the Kubernetes default role to use

.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1;

Returns
Type Description
RBACRoleBinding.Role.PredefinedRoles

The predefinedRole.

getPredefinedRoleValue()

public abstract int getPredefinedRoleValue()

predefined_role is the Kubernetes default role to use

.google.cloud.gkehub.v1.RBACRoleBinding.Role.PredefinedRoles predefined_role = 1;

Returns
Type Description
int

The enum numeric value on the wire for predefinedRole.