Class RelatedAssets.Builder (3.4.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.asset.v1p7beta1.RelatedAsset>
Returns
TypeDescription
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
NameDescription
valueRelatedAsset
Returns
TypeDescription
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
NameDescription
builderForValueRelatedAsset.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRelatedAsset
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRelatedAsset.Builder
Returns
TypeDescription
RelatedAssets.Builder

addAssetsBuilder()

public RelatedAsset.Builder addAssetsBuilder()

The peer resources of the relationship.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RelatedAsset.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RelatedAssets build()
Returns
TypeDescription
RelatedAssets

buildPartial()

public RelatedAssets buildPartial()
Returns
TypeDescription
RelatedAssets

clear()

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

clearAssets()

public RelatedAssets.Builder clearAssets()

The peer resources of the relationship.

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

Returns
TypeDescription
RelatedAssets.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRelationshipAttributes()

public RelatedAssets.Builder clearRelationshipAttributes()

The detailed relation attributes.

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

Returns
TypeDescription
RelatedAssets.Builder

clone()

public RelatedAssets.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RelatedAsset.Builder

getAssetsBuilderList()

public List<RelatedAsset.Builder> getAssetsBuilderList()

The peer resources of the relationship.

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

Returns
TypeDescription
List<Builder>

getAssetsCount()

public int getAssetsCount()

The peer resources of the relationship.

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

Returns
TypeDescription
int

getAssetsList()

public List<RelatedAsset> getAssetsList()

The peer resources of the relationship.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RelatedAssetOrBuilder

getAssetsOrBuilderList()

public List<? extends RelatedAssetOrBuilder> getAssetsOrBuilderList()

The peer resources of the relationship.

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

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

getDefaultInstanceForType()

public RelatedAssets getDefaultInstanceForType()
Returns
TypeDescription
RelatedAssets

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRelationshipAttributes()

public RelationshipAttributes getRelationshipAttributes()

The detailed relation attributes.

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

Returns
TypeDescription
RelationshipAttributes

The relationshipAttributes.

getRelationshipAttributesBuilder()

public RelationshipAttributes.Builder getRelationshipAttributesBuilder()

The detailed relation attributes.

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

Returns
TypeDescription
RelationshipAttributes.Builder

getRelationshipAttributesOrBuilder()

public RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder()

The detailed relation attributes.

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

Returns
TypeDescription
RelationshipAttributesOrBuilder

hasRelationshipAttributes()

public boolean hasRelationshipAttributes()

The detailed relation attributes.

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

Returns
TypeDescription
boolean

Whether the relationshipAttributes field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RelatedAssets other)

public RelatedAssets.Builder mergeFrom(RelatedAssets other)
Parameter
NameDescription
otherRelatedAssets
Returns
TypeDescription
RelatedAssets.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RelatedAssets.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRelationshipAttributes
Returns
TypeDescription
RelatedAssets.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RelatedAssets.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueRelatedAsset
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRelatedAsset.Builder
Returns
TypeDescription
RelatedAssets.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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