Class AssetEnrichment.Builder (3.67.0)

public static final class AssetEnrichment.Builder extends GeneratedMessageV3.Builder<AssetEnrichment.Builder> implements AssetEnrichmentOrBuilder

The enhanced metadata information for a resource.

Protobuf type google.cloud.asset.v1.AssetEnrichment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AssetEnrichment build()
Returns
Type Description
AssetEnrichment

buildPartial()

public AssetEnrichment buildPartial()
Returns
Type Description
AssetEnrichment

clear()

public AssetEnrichment.Builder clear()
Returns
Type Description
AssetEnrichment.Builder
Overrides

clearEnrichmentData()

public AssetEnrichment.Builder clearEnrichmentData()
Returns
Type Description
AssetEnrichment.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceOwners()

public AssetEnrichment.Builder clearResourceOwners()

The resource owners for a resource.

Note that this field only contains the members that have "roles/owner" role in the resource's IAM Policy.

.google.cloud.asset.v1.ResourceOwners resource_owners = 7;

Returns
Type Description
AssetEnrichment.Builder

clone()

public AssetEnrichment.Builder clone()
Returns
Type Description
AssetEnrichment.Builder
Overrides

getDefaultInstanceForType()

public AssetEnrichment getDefaultInstanceForType()
Returns
Type Description
AssetEnrichment

getDescriptorForType()

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

getEnrichmentDataCase()

public AssetEnrichment.EnrichmentDataCase getEnrichmentDataCase()
Returns
Type Description
AssetEnrichment.EnrichmentDataCase

getResourceOwners()

public ResourceOwners getResourceOwners()

The resource owners for a resource.

Note that this field only contains the members that have "roles/owner" role in the resource's IAM Policy.

.google.cloud.asset.v1.ResourceOwners resource_owners = 7;

Returns
Type Description
ResourceOwners

The resourceOwners.

getResourceOwnersBuilder()

public ResourceOwners.Builder getResourceOwnersBuilder()

The resource owners for a resource.

Note that this field only contains the members that have "roles/owner" role in the resource's IAM Policy.

.google.cloud.asset.v1.ResourceOwners resource_owners = 7;

Returns
Type Description
ResourceOwners.Builder

getResourceOwnersOrBuilder()

public ResourceOwnersOrBuilder getResourceOwnersOrBuilder()

The resource owners for a resource.

Note that this field only contains the members that have "roles/owner" role in the resource's IAM Policy.

.google.cloud.asset.v1.ResourceOwners resource_owners = 7;

Returns
Type Description
ResourceOwnersOrBuilder

hasResourceOwners()

public boolean hasResourceOwners()

The resource owners for a resource.

Note that this field only contains the members that have "roles/owner" role in the resource's IAM Policy.

.google.cloud.asset.v1.ResourceOwners resource_owners = 7;

Returns
Type Description
boolean

Whether the resourceOwners field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssetEnrichment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResourceOwners(ResourceOwners value)

public AssetEnrichment.Builder mergeResourceOwners(ResourceOwners value)

The resource owners for a resource.

Note that this field only contains the members that have "roles/owner" role in the resource's IAM Policy.

.google.cloud.asset.v1.ResourceOwners resource_owners = 7;

Parameter
Name Description
value ResourceOwners
Returns
Type Description
AssetEnrichment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResourceOwners(ResourceOwners value)

public AssetEnrichment.Builder setResourceOwners(ResourceOwners value)

The resource owners for a resource.

Note that this field only contains the members that have "roles/owner" role in the resource's IAM Policy.

.google.cloud.asset.v1.ResourceOwners resource_owners = 7;

Parameter
Name Description
value ResourceOwners
Returns
Type Description
AssetEnrichment.Builder

setResourceOwners(ResourceOwners.Builder builderForValue)

public AssetEnrichment.Builder setResourceOwners(ResourceOwners.Builder builderForValue)

The resource owners for a resource.

Note that this field only contains the members that have "roles/owner" role in the resource's IAM Policy.

.google.cloud.asset.v1.ResourceOwners resource_owners = 7;

Parameter
Name Description
builderForValue ResourceOwners.Builder
Returns
Type Description
AssetEnrichment.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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