Class Asset.IamPolicy.Builder (2.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Asset.IamPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Asset.IamPolicy.Builder
Overrides

build()

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

buildPartial()

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

clear()

public Asset.IamPolicy.Builder clear()
Returns
TypeDescription
Asset.IamPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Asset.IamPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Asset.IamPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Asset.IamPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Asset.IamPolicy.Builder

This builder for chaining.

clone()

public Asset.IamPolicy.Builder clone()
Returns
TypeDescription
Asset.IamPolicy.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for policyBlob.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Asset.IamPolicy other)

public Asset.IamPolicy.Builder mergeFrom(Asset.IamPolicy other)
Parameter
NameDescription
otherAsset.IamPolicy
Returns
TypeDescription
Asset.IamPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Asset.IamPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Asset.IamPolicy.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Asset.IamPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Asset.IamPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Asset.IamPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Asset.IamPolicy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Asset.IamPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The policyBlob to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for policyBlob to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Asset.IamPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Asset.IamPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Asset.IamPolicy.Builder
Overrides