Class RelatedAssets.Builder (3.17.0)

public static final class RelatedAssets.Builder extends GeneratedMessageV3.Builder<RelatedAssets.Builder> implements RelatedAssetsOrBuilder

The detailed related assets with the relationship_type.

Protobuf type google.cloud.asset.v1p7beta1.RelatedAssets

Static Methods

getDescriptor()

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

Methods

addAllAssets(Iterable<? extends RelatedAsset> values)

public RelatedAssets.Builder addAllAssets(Iterable<? extends RelatedAsset> values)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.asset.v1p7beta1.RelatedAsset>
Returns
Type Description
RelatedAssets.Builder

addAssets(RelatedAsset value)

public RelatedAssets.Builder addAssets(RelatedAsset value)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameter
Name Description
value RelatedAsset
Returns
Type Description
RelatedAssets.Builder

addAssets(RelatedAsset.Builder builderForValue)

public RelatedAssets.Builder addAssets(RelatedAsset.Builder builderForValue)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameter
Name Description
builderForValue RelatedAsset.Builder
Returns
Type Description
RelatedAssets.Builder

addAssets(int index, RelatedAsset value)

public RelatedAssets.Builder addAssets(int index, RelatedAsset value)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameters
Name Description
index int
value RelatedAsset
Returns
Type Description
RelatedAssets.Builder

addAssets(int index, RelatedAsset.Builder builderForValue)

public RelatedAssets.Builder addAssets(int index, RelatedAsset.Builder builderForValue)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameters
Name Description
index int
builderForValue RelatedAsset.Builder
Returns
Type Description
RelatedAssets.Builder

addAssetsBuilder()

public RelatedAsset.Builder addAssetsBuilder()

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Returns
Type Description
RelatedAsset.Builder

addAssetsBuilder(int index)

public RelatedAsset.Builder addAssetsBuilder(int index)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameter
Name Description
index int
Returns
Type Description
RelatedAsset.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RelatedAssets build()
Returns
Type Description
RelatedAssets

buildPartial()

public RelatedAssets buildPartial()
Returns
Type Description
RelatedAssets

clear()

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

clearAssets()

public RelatedAssets.Builder clearAssets()

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Returns
Type Description
RelatedAssets.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRelationshipAttributes()

public RelatedAssets.Builder clearRelationshipAttributes()

The detailed relation attributes.

.google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1;

Returns
Type Description
RelatedAssets.Builder

clone()

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

getAssets(int index)

public RelatedAsset getAssets(int index)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameter
Name Description
index int
Returns
Type Description
RelatedAsset

getAssetsBuilder(int index)

public RelatedAsset.Builder getAssetsBuilder(int index)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameter
Name Description
index int
Returns
Type Description
RelatedAsset.Builder

getAssetsBuilderList()

public List<RelatedAsset.Builder> getAssetsBuilderList()

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Returns
Type Description
List<Builder>

getAssetsCount()

public int getAssetsCount()

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Returns
Type Description
int

getAssetsList()

public List<RelatedAsset> getAssetsList()

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Returns
Type Description
List<RelatedAsset>

getAssetsOrBuilder(int index)

public RelatedAssetOrBuilder getAssetsOrBuilder(int index)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameter
Name Description
index int
Returns
Type Description
RelatedAssetOrBuilder

getAssetsOrBuilderList()

public List<? extends RelatedAssetOrBuilder> getAssetsOrBuilderList()

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Returns
Type Description
List<? extends com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder>

getDefaultInstanceForType()

public RelatedAssets getDefaultInstanceForType()
Returns
Type Description
RelatedAssets

getDescriptorForType()

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

getRelationshipAttributes()

public RelationshipAttributes getRelationshipAttributes()

The detailed relation attributes.

.google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1;

Returns
Type Description
RelationshipAttributes

The relationshipAttributes.

getRelationshipAttributesBuilder()

public RelationshipAttributes.Builder getRelationshipAttributesBuilder()

The detailed relation attributes.

.google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1;

Returns
Type Description
RelationshipAttributes.Builder

getRelationshipAttributesOrBuilder()

public RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder()

The detailed relation attributes.

.google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1;

Returns
Type Description
RelationshipAttributesOrBuilder

hasRelationshipAttributes()

public boolean hasRelationshipAttributes()

The detailed relation attributes.

.google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1;

Returns
Type Description
boolean

Whether the relationshipAttributes field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RelatedAssets other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRelationshipAttributes(RelationshipAttributes value)

public RelatedAssets.Builder mergeRelationshipAttributes(RelationshipAttributes value)

The detailed relation attributes.

.google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1;

Parameter
Name Description
value RelationshipAttributes
Returns
Type Description
RelatedAssets.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAssets(int index)

public RelatedAssets.Builder removeAssets(int index)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameter
Name Description
index int
Returns
Type Description
RelatedAssets.Builder

setAssets(int index, RelatedAsset value)

public RelatedAssets.Builder setAssets(int index, RelatedAsset value)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameters
Name Description
index int
value RelatedAsset
Returns
Type Description
RelatedAssets.Builder

setAssets(int index, RelatedAsset.Builder builderForValue)

public RelatedAssets.Builder setAssets(int index, RelatedAsset.Builder builderForValue)

The peer resources of the relationship.

repeated .google.cloud.asset.v1p7beta1.RelatedAsset assets = 2;

Parameters
Name Description
index int
builderForValue RelatedAsset.Builder
Returns
Type Description
RelatedAssets.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRelationshipAttributes(RelationshipAttributes value)

public RelatedAssets.Builder setRelationshipAttributes(RelationshipAttributes value)

The detailed relation attributes.

.google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1;

Parameter
Name Description
value RelationshipAttributes
Returns
Type Description
RelatedAssets.Builder

setRelationshipAttributes(RelationshipAttributes.Builder builderForValue)

public RelatedAssets.Builder setRelationshipAttributes(RelationshipAttributes.Builder builderForValue)

The detailed relation attributes.

.google.cloud.asset.v1p7beta1.RelationshipAttributes relationship_attributes = 1;

Parameter
Name Description
builderForValue RelationshipAttributes.Builder
Returns
Type Description
RelatedAssets.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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