Class RBACRoleBinding (1.85.0)

public final class RBACRoleBinding extends GeneratedMessage implements RBACRoleBindingOrBuilder

RBACRoleBinding represents a rbacrolebinding across the Fleet

Protobuf type google.cloud.gkehub.v1.RBACRoleBinding

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DELETE_TIME_FIELD_NUMBER

public static final int DELETE_TIME_FIELD_NUMBER
Field Value
Type Description
int

GROUP_FIELD_NUMBER

public static final int GROUP_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

ROLE_FIELD_NUMBER

public static final int ROLE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UID_FIELD_NUMBER

public static final int UID_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

USER_FIELD_NUMBER

public static final int USER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RBACRoleBinding getDefaultInstance()
Returns
Type Description
RBACRoleBinding

getDescriptor()

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

newBuilder()

public static RBACRoleBinding.Builder newBuilder()
Returns
Type Description
RBACRoleBinding.Builder

newBuilder(RBACRoleBinding prototype)

public static RBACRoleBinding.Builder newBuilder(RBACRoleBinding prototype)
Parameter
Name Description
prototype RBACRoleBinding
Returns
Type Description
RBACRoleBinding.Builder

parseDelimitedFrom(InputStream input)

public static RBACRoleBinding parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RBACRoleBinding parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RBACRoleBinding parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RBACRoleBinding parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RBACRoleBinding parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RBACRoleBinding parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RBACRoleBinding parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RBACRoleBinding parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RBACRoleBinding parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RBACRoleBinding parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RBACRoleBinding parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RBACRoleBinding parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RBACRoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RBACRoleBinding> parser()
Returns
Type Description
Parser<RBACRoleBinding>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels for this RBACRolebinding.

map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. When the rbacrolebinding was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the rbacrolebinding was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public RBACRoleBinding getDefaultInstanceForType()
Returns
Type Description
RBACRoleBinding

getDeleteTime()

public Timestamp getDeleteTime()

Output only. When the rbacrolebinding was deleted.

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The deleteTime.

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. When the rbacrolebinding was deleted.

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getGroup()

public String getGroup()

group is the group, as seen by the kubernetes cluster.

string group = 8;

Returns
Type Description
String

The group.

getGroupBytes()

public ByteString getGroupBytes()

group is the group, as seen by the kubernetes cluster.

string group = 8;

Returns
Type Description
ByteString

The bytes for group.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels for this RBACRolebinding.

map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels for this RBACRolebinding.

map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels for this RBACRolebinding.

map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels for this RBACRolebinding.

map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getName()

public String getName()

The resource name for the rbacrolebinding projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding} or projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name for the rbacrolebinding projects/{project}/locations/{location}/scopes/{scope}/rbacrolebindings/{rbacrolebinding} or projects/{project}/locations/{location}/memberships/{membership}/rbacrolebindings/{rbacrolebinding}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<RBACRoleBinding> getParserForType()
Returns
Type Description
Parser<RBACRoleBinding>
Overrides

getPrincipalCase()

public RBACRoleBinding.PrincipalCase getPrincipalCase()
Returns
Type Description
RBACRoleBinding.PrincipalCase

getRole()

public RBACRoleBinding.Role getRole()

Required. Role to bind to the principal

.google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RBACRoleBinding.Role

The role.

getRoleOrBuilder()

public RBACRoleBinding.RoleOrBuilder getRoleOrBuilder()

Required. Role to bind to the principal

.google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RBACRoleBinding.RoleOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public RBACRoleBindingLifecycleState getState()

Output only. State of the rbacrolebinding resource.

.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RBACRoleBindingLifecycleState

The state.

getStateOrBuilder()

public RBACRoleBindingLifecycleStateOrBuilder getStateOrBuilder()

Output only. State of the rbacrolebinding resource.

.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RBACRoleBindingLifecycleStateOrBuilder

getUid()

public String getUid()

Output only. Google-generated UUID for this resource. This is unique across all rbacrolebinding resources. If a rbacrolebinding resource is deleted and another resource with the same name is created, it gets a different uid.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Google-generated UUID for this resource. This is unique across all rbacrolebinding resources. If a rbacrolebinding resource is deleted and another resource with the same name is created, it gets a different uid.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. When the rbacrolebinding was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the rbacrolebinding was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUser()

public String getUser()

user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"

string user = 7;

Returns
Type Description
String

The user.

getUserBytes()

public ByteString getUserBytes()

user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"

string user = 7;

Returns
Type Description
ByteString

The bytes for user.

hasCreateTime()

public boolean hasCreateTime()

Output only. When the rbacrolebinding was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. When the rbacrolebinding was deleted.

.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deleteTime field is set.

hasGroup()

public boolean hasGroup()

group is the group, as seen by the kubernetes cluster.

string group = 8;

Returns
Type Description
boolean

Whether the group field is set.

hasRole()

public boolean hasRole()

Required. Role to bind to the principal

.google.cloud.gkehub.v1.RBACRoleBinding.Role role = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the role field is set.

hasState()

public boolean hasState()

Output only. State of the rbacrolebinding resource.

.google.cloud.gkehub.v1.RBACRoleBindingLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the state field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. When the rbacrolebinding was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hasUser()

public boolean hasUser()

user is the name of the user as seen by the kubernetes cluster, example "alice" or "alice@domain.tld"

string user = 7;

Returns
Type Description
boolean

Whether the user field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RBACRoleBinding.Builder newBuilderForType()
Returns
Type Description
RBACRoleBinding.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RBACRoleBinding.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RBACRoleBinding.Builder
Overrides

toBuilder()

public RBACRoleBinding.Builder toBuilder()
Returns
Type Description
RBACRoleBinding.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException