Class Asset.IamPolicy (2.63.0)

public static final class Asset.IamPolicy extends GeneratedMessageV3 implements Asset.IamPolicyOrBuilder

Cloud IAM Policy information associated with the Google Cloud resource described by the Security Command Center asset. This information is managed and defined by the Google Cloud resource and cannot be modified by the user.

Protobuf type google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy

Static Fields

POLICY_BLOB_FIELD_NUMBER

public static final int POLICY_BLOB_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Asset.IamPolicy getDefaultInstance()
Returns
Type Description
Asset.IamPolicy

getDescriptor()

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

newBuilder()

public static Asset.IamPolicy.Builder newBuilder()
Returns
Type Description
Asset.IamPolicy.Builder

newBuilder(Asset.IamPolicy prototype)

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

parseDelimitedFrom(InputStream input)

public static Asset.IamPolicy parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Asset.IamPolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Asset.IamPolicy parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Asset.IamPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Asset.IamPolicy parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Asset.IamPolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Asset.IamPolicy parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Asset.IamPolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Asset.IamPolicy parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Asset.IamPolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Asset.IamPolicy> parser()
Returns
Type Description
Parser<IamPolicy>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Asset.IamPolicy getDefaultInstanceForType()
Returns
Type Description
Asset.IamPolicy

getParserForType()

public Parser<Asset.IamPolicy> getParserForType()
Returns
Type Description
Parser<IamPolicy>
Overrides

getPolicyBlob()

public String getPolicyBlob()

The JSON representation of the Policy associated with the asset. See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for format details.

string policy_blob = 1;

Returns
Type Description
String

The policyBlob.

getPolicyBlobBytes()

public ByteString getPolicyBlobBytes()

The JSON representation of the Policy associated with the asset. See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for format details.

string policy_blob = 1;

Returns
Type Description
ByteString

The bytes for policyBlob.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Asset.IamPolicy.Builder toBuilder()
Returns
Type Description
Asset.IamPolicy.Builder

writeTo(CodedOutputStream output)

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