Class ResourcePolicyMember (1.45.0)

public final class ResourcePolicyMember extends GeneratedMessageV3 implements ResourcePolicyMemberOrBuilder

Output-only policy member strings of a Google Cloud resource's built-in identity.

Protobuf type google.iam.v1.ResourcePolicyMember

Static Fields

IAM_POLICY_NAME_PRINCIPAL_FIELD_NUMBER

public static final int IAM_POLICY_NAME_PRINCIPAL_FIELD_NUMBER
Field Value
Type Description
int

IAM_POLICY_UID_PRINCIPAL_FIELD_NUMBER

public static final int IAM_POLICY_UID_PRINCIPAL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourcePolicyMember getDefaultInstance()
Returns
Type Description
ResourcePolicyMember

getDescriptor()

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

newBuilder()

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

newBuilder(ResourcePolicyMember prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ResourcePolicyMember getDefaultInstanceForType()
Returns
Type Description
ResourcePolicyMember

getIamPolicyNamePrincipal()

public String getIamPolicyNamePrincipal()

IAM policy binding member referring to a Google Cloud resource by user-assigned name (https://google.aip.dev/122). If a resource is deleted and recreated with the same name, the binding will be applicable to the new resource.

Example: principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter

string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The iamPolicyNamePrincipal.

getIamPolicyNamePrincipalBytes()

public ByteString getIamPolicyNamePrincipalBytes()

IAM policy binding member referring to a Google Cloud resource by user-assigned name (https://google.aip.dev/122). If a resource is deleted and recreated with the same name, the binding will be applicable to the new resource.

Example: principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter

string iam_policy_name_principal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for iamPolicyNamePrincipal.

getIamPolicyUidPrincipal()

public String getIamPolicyUidPrincipal()

IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier (https://google.aip.dev/148#uid). If a resource is deleted and recreated with the same name, the binding will not be applicable to the new resource

Example: principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5

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

Returns
Type Description
String

The iamPolicyUidPrincipal.

getIamPolicyUidPrincipalBytes()

public ByteString getIamPolicyUidPrincipalBytes()

IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier (https://google.aip.dev/148#uid). If a resource is deleted and recreated with the same name, the binding will not be applicable to the new resource

Example: principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5

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

Returns
Type Description
ByteString

The bytes for iamPolicyUidPrincipal.

getParserForType()

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

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 ResourcePolicyMember.Builder newBuilderForType()
Returns
Type Description
ResourcePolicyMember.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourcePolicyMember.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ResourcePolicyMember.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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