Class AttachedResource.Builder (3.4.1)

public static final class AttachedResource.Builder extends GeneratedMessageV3.Builder<AttachedResource.Builder> implements AttachedResourceOrBuilder

Attached resource representation, which is defined by the corresponding service provider. It represents an attached resource's payload.

Protobuf type google.cloud.asset.v1.AttachedResource

Static Methods

getDescriptor()

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

Methods

addAllVersionedResources(Iterable<? extends VersionedResource> values)

public AttachedResource.Builder addAllVersionedResources(Iterable<? extends VersionedResource> values)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.asset.v1.VersionedResource>
Returns
TypeDescription
AttachedResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVersionedResources(VersionedResource value)

public AttachedResource.Builder addVersionedResources(VersionedResource value)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameter
NameDescription
valueVersionedResource
Returns
TypeDescription
AttachedResource.Builder

addVersionedResources(VersionedResource.Builder builderForValue)

public AttachedResource.Builder addVersionedResources(VersionedResource.Builder builderForValue)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameter
NameDescription
builderForValueVersionedResource.Builder
Returns
TypeDescription
AttachedResource.Builder

addVersionedResources(int index, VersionedResource value)

public AttachedResource.Builder addVersionedResources(int index, VersionedResource value)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameters
NameDescription
indexint
valueVersionedResource
Returns
TypeDescription
AttachedResource.Builder

addVersionedResources(int index, VersionedResource.Builder builderForValue)

public AttachedResource.Builder addVersionedResources(int index, VersionedResource.Builder builderForValue)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameters
NameDescription
indexint
builderForValueVersionedResource.Builder
Returns
TypeDescription
AttachedResource.Builder

addVersionedResourcesBuilder()

public VersionedResource.Builder addVersionedResourcesBuilder()

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Returns
TypeDescription
VersionedResource.Builder

addVersionedResourcesBuilder(int index)

public VersionedResource.Builder addVersionedResourcesBuilder(int index)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VersionedResource.Builder

build()

public AttachedResource build()
Returns
TypeDescription
AttachedResource

buildPartial()

public AttachedResource buildPartial()
Returns
TypeDescription
AttachedResource

clear()

public AttachedResource.Builder clear()
Returns
TypeDescription
AttachedResource.Builder
Overrides

clearAssetType()

public AttachedResource.Builder clearAssetType()

The type of this attached resource. Example: osconfig.googleapis.com/Inventory You can find the supported attached asset types of each resource in this table: https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types

string asset_type = 1;

Returns
TypeDescription
AttachedResource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AttachedResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AttachedResource.Builder
Overrides

clearVersionedResources()

public AttachedResource.Builder clearVersionedResources()

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Returns
TypeDescription
AttachedResource.Builder

clone()

public AttachedResource.Builder clone()
Returns
TypeDescription
AttachedResource.Builder
Overrides

getAssetType()

public String getAssetType()

The type of this attached resource. Example: osconfig.googleapis.com/Inventory You can find the supported attached asset types of each resource in this table: https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types

string asset_type = 1;

Returns
TypeDescription
String

The assetType.

getAssetTypeBytes()

public ByteString getAssetTypeBytes()

The type of this attached resource. Example: osconfig.googleapis.com/Inventory You can find the supported attached asset types of each resource in this table: https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types

string asset_type = 1;

Returns
TypeDescription
ByteString

The bytes for assetType.

getDefaultInstanceForType()

public AttachedResource getDefaultInstanceForType()
Returns
TypeDescription
AttachedResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVersionedResources(int index)

public VersionedResource getVersionedResources(int index)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VersionedResource

getVersionedResourcesBuilder(int index)

public VersionedResource.Builder getVersionedResourcesBuilder(int index)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VersionedResource.Builder

getVersionedResourcesBuilderList()

public List<VersionedResource.Builder> getVersionedResourcesBuilderList()

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Returns
TypeDescription
List<Builder>

getVersionedResourcesCount()

public int getVersionedResourcesCount()

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Returns
TypeDescription
int

getVersionedResourcesList()

public List<VersionedResource> getVersionedResourcesList()

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Returns
TypeDescription
List<VersionedResource>

getVersionedResourcesOrBuilder(int index)

public VersionedResourceOrBuilder getVersionedResourcesOrBuilder(int index)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VersionedResourceOrBuilder

getVersionedResourcesOrBuilderList()

public List<? extends VersionedResourceOrBuilder> getVersionedResourcesOrBuilderList()

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Returns
TypeDescription
List<? extends com.google.cloud.asset.v1.VersionedResourceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttachedResource other)

public AttachedResource.Builder mergeFrom(AttachedResource other)
Parameter
NameDescription
otherAttachedResource
Returns
TypeDescription
AttachedResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVersionedResources(int index)

public AttachedResource.Builder removeVersionedResources(int index)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AttachedResource.Builder

setAssetType(String value)

public AttachedResource.Builder setAssetType(String value)

The type of this attached resource. Example: osconfig.googleapis.com/Inventory You can find the supported attached asset types of each resource in this table: https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types

string asset_type = 1;

Parameter
NameDescription
valueString

The assetType to set.

Returns
TypeDescription
AttachedResource.Builder

This builder for chaining.

setAssetTypeBytes(ByteString value)

public AttachedResource.Builder setAssetTypeBytes(ByteString value)

The type of this attached resource. Example: osconfig.googleapis.com/Inventory You can find the supported attached asset types of each resource in this table: https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types

string asset_type = 1;

Parameter
NameDescription
valueByteString

The bytes for assetType to set.

Returns
TypeDescription
AttachedResource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AttachedResource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttachedResource.Builder
Overrides

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

public AttachedResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AttachedResource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersionedResources(int index, VersionedResource value)

public AttachedResource.Builder setVersionedResources(int index, VersionedResource value)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameters
NameDescription
indexint
valueVersionedResource
Returns
TypeDescription
AttachedResource.Builder

setVersionedResources(int index, VersionedResource.Builder builderForValue)

public AttachedResource.Builder setVersionedResources(int index, VersionedResource.Builder builderForValue)

Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.

repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;

Parameters
NameDescription
indexint
builderForValueVersionedResource.Builder
Returns
TypeDescription
AttachedResource.Builder