Class Asset.IamPolicy (2.21.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
TypeDescription
int

Static Methods

getDefaultInstance()

public static Asset.IamPolicy getDefaultInstance()
Returns
TypeDescription
Asset.IamPolicy

getDescriptor()

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

newBuilder()

public static Asset.IamPolicy.Builder newBuilder()
Returns
TypeDescription
Asset.IamPolicy.Builder

newBuilder(Asset.IamPolicy prototype)

public static Asset.IamPolicy.Builder newBuilder(Asset.IamPolicy prototype)
Parameter
NameDescription
prototypeAsset.IamPolicy
Returns
TypeDescription
Asset.IamPolicy.Builder

parseDelimitedFrom(InputStream input)

public static Asset.IamPolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Asset.IamPolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Asset.IamPolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Asset.IamPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Asset.IamPolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Asset.IamPolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Asset.IamPolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Asset.IamPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Asset.IamPolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Asset.IamPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Asset.IamPolicy getDefaultInstanceForType()
Returns
TypeDescription
Asset.IamPolicy

getParserForType()

public Parser<Asset.IamPolicy> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for policyBlob.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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 Asset.IamPolicy.Builder newBuilderForType()
Returns
TypeDescription
Asset.IamPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Asset.IamPolicy.Builder toBuilder()
Returns
TypeDescription
Asset.IamPolicy.Builder

writeTo(CodedOutputStream output)

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