Class Asset.IamPolicy.Builder (2.53.0)

public static final class Asset.IamPolicy.Builder extends GeneratedMessageV3.Builder<Asset.IamPolicy.Builder> 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.v1.Asset.IamPolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Asset.IamPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Asset.IamPolicy.Builder
Overrides

build()

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

buildPartial()

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

clear()

public Asset.IamPolicy.Builder clear()
Returns
Type Description
Asset.IamPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Asset.IamPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Asset.IamPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Asset.IamPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Asset.IamPolicy.Builder
Overrides

clearPolicyBlob()

public Asset.IamPolicy.Builder clearPolicyBlob()

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

string policy_blob = 1;

Returns
Type Description
Asset.IamPolicy.Builder

This builder for chaining.

clone()

public Asset.IamPolicy.Builder clone()
Returns
Type Description
Asset.IamPolicy.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPolicyBlob()

public String getPolicyBlob()

The JSON representation of the Policy associated with the asset. See https://cloud.google.com/iam/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/reference/rest/v1/Policy for format details.

string policy_blob = 1;

Returns
Type Description
ByteString

The bytes for policyBlob.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Asset.IamPolicy other)

public Asset.IamPolicy.Builder mergeFrom(Asset.IamPolicy other)
Parameter
Name Description
other Asset.IamPolicy
Returns
Type Description
Asset.IamPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Asset.IamPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Asset.IamPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Asset.IamPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Asset.IamPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Asset.IamPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Asset.IamPolicy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Asset.IamPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Asset.IamPolicy.Builder
Overrides

setPolicyBlob(String value)

public Asset.IamPolicy.Builder setPolicyBlob(String value)

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

string policy_blob = 1;

Parameter
Name Description
value String

The policyBlob to set.

Returns
Type Description
Asset.IamPolicy.Builder

This builder for chaining.

setPolicyBlobBytes(ByteString value)

public Asset.IamPolicy.Builder setPolicyBlobBytes(ByteString value)

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

string policy_blob = 1;

Parameter
Name Description
value ByteString

The bytes for policyBlob to set.

Returns
Type Description
Asset.IamPolicy.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Asset.IamPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Asset.IamPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Asset.IamPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Asset.IamPolicy.Builder
Overrides