Class IamBinding (2.49.0)

public final class IamBinding extends GeneratedMessageV3 implements IamBindingOrBuilder

Represents a particular IAM binding, which captures a member's role addition, removal, or state.

Protobuf type google.cloud.securitycenter.v2.IamBinding

Implements

IamBindingOrBuilder

Static Fields

ACTION_FIELD_NUMBER

public static final int ACTION_FIELD_NUMBER
Field Value
TypeDescription
int

MEMBER_FIELD_NUMBER

public static final int MEMBER_FIELD_NUMBER
Field Value
TypeDescription
int

ROLE_FIELD_NUMBER

public static final int ROLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static IamBinding getDefaultInstance()
Returns
TypeDescription
IamBinding

getDescriptor()

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

newBuilder()

public static IamBinding.Builder newBuilder()
Returns
TypeDescription
IamBinding.Builder

newBuilder(IamBinding prototype)

public static IamBinding.Builder newBuilder(IamBinding prototype)
Parameter
NameDescription
prototypeIamBinding
Returns
TypeDescription
IamBinding.Builder

parseDelimitedFrom(InputStream input)

public static IamBinding parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IamBinding parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static IamBinding parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static IamBinding parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static IamBinding parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static IamBinding parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static IamBinding parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static IamBinding parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static IamBinding parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IamBinding parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static IamBinding parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static IamBinding parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IamBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<IamBinding> parser()
Returns
TypeDescription
Parser<IamBinding>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAction()

public IamBinding.Action getAction()

The action that was performed on a Binding.

.google.cloud.securitycenter.v2.IamBinding.Action action = 1;

Returns
TypeDescription
IamBinding.Action

The action.

getActionValue()

public int getActionValue()

The action that was performed on a Binding.

.google.cloud.securitycenter.v2.IamBinding.Action action = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for action.

getDefaultInstanceForType()

public IamBinding getDefaultInstanceForType()
Returns
TypeDescription
IamBinding

getMember()

public String getMember()

A single identity requesting access for a Cloud Platform resource, for example, "foo@google.com".

string member = 3;

Returns
TypeDescription
String

The member.

getMemberBytes()

public ByteString getMemberBytes()

A single identity requesting access for a Cloud Platform resource, for example, "foo@google.com".

string member = 3;

Returns
TypeDescription
ByteString

The bytes for member.

getParserForType()

public Parser<IamBinding> getParserForType()
Returns
TypeDescription
Parser<IamBinding>
Overrides

getRole()

public String getRole()

Role that is assigned to "members". For example, "roles/viewer", "roles/editor", or "roles/owner".

string role = 2;

Returns
TypeDescription
String

The role.

getRoleBytes()

public ByteString getRoleBytes()

Role that is assigned to "members". For example, "roles/viewer", "roles/editor", or "roles/owner".

string role = 2;

Returns
TypeDescription
ByteString

The bytes for role.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public IamBinding.Builder newBuilderForType()
Returns
TypeDescription
IamBinding.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected IamBinding.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
IamBinding.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public IamBinding.Builder toBuilder()
Returns
TypeDescription
IamBinding.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException