Class PrivilegedAccess.GcpIamAccess.RoleBinding (0.7.0)

public static final class PrivilegedAccess.GcpIamAccess.RoleBinding extends GeneratedMessageV3 implements PrivilegedAccess.GcpIamAccess.RoleBindingOrBuilder

IAM Role bindings that are created after a successful grant.

Protobuf type google.cloud.privilegedaccessmanager.v1.PrivilegedAccess.GcpIamAccess.RoleBinding

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PrivilegedAccess.GcpIamAccess.RoleBinding

Static Fields

CONDITION_EXPRESSION_FIELD_NUMBER

public static final int CONDITION_EXPRESSION_FIELD_NUMBER
Field Value
Type Description
int

ROLE_FIELD_NUMBER

public static final int ROLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PrivilegedAccess.GcpIamAccess.RoleBinding getDefaultInstance()
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding

getDescriptor()

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

newBuilder()

public static PrivilegedAccess.GcpIamAccess.RoleBinding.Builder newBuilder()
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder

newBuilder(PrivilegedAccess.GcpIamAccess.RoleBinding prototype)

public static PrivilegedAccess.GcpIamAccess.RoleBinding.Builder newBuilder(PrivilegedAccess.GcpIamAccess.RoleBinding prototype)
Parameter
Name Description
prototype PrivilegedAccess.GcpIamAccess.RoleBinding
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder

parseDelimitedFrom(InputStream input)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PrivilegedAccess.GcpIamAccess.RoleBinding parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PrivilegedAccess.GcpIamAccess.RoleBinding> parser()
Returns
Type Description
Parser<RoleBinding>

Methods

equals(Object obj)

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

getConditionExpression()

public String getConditionExpression()

Optional. The expression field of the IAM condition to be associated with the role. If specified, a user with an active grant for this entitlement is able to access the resource only if this condition evaluates to true for their request.

This field uses the same CEL format as IAM and supports all attributes that IAM supports, except tags. https://cloud.google.com/iam/docs/conditions-overview#attributes.

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

Returns
Type Description
String

The conditionExpression.

getConditionExpressionBytes()

public ByteString getConditionExpressionBytes()

Optional. The expression field of the IAM condition to be associated with the role. If specified, a user with an active grant for this entitlement is able to access the resource only if this condition evaluates to true for their request.

This field uses the same CEL format as IAM and supports all attributes that IAM supports, except tags. https://cloud.google.com/iam/docs/conditions-overview#attributes.

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

Returns
Type Description
ByteString

The bytes for conditionExpression.

getDefaultInstanceForType()

public PrivilegedAccess.GcpIamAccess.RoleBinding getDefaultInstanceForType()
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding

getParserForType()

public Parser<PrivilegedAccess.GcpIamAccess.RoleBinding> getParserForType()
Returns
Type Description
Parser<RoleBinding>
Overrides

getRole()

public String getRole()

Required. IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview.

string role = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The role.

getRoleBytes()

public ByteString getRoleBytes()

Required. IAM role to be granted. https://cloud.google.com/iam/docs/roles-overview.

string role = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for role.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder newBuilderForType()
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PrivilegedAccess.GcpIamAccess.RoleBinding.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PrivilegedAccess.GcpIamAccess.RoleBinding.Builder toBuilder()
Returns
Type Description
PrivilegedAccess.GcpIamAccess.RoleBinding.Builder

writeTo(CodedOutputStream output)

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