Class RelatedResources.Builder (3.19.0)

public static final class RelatedResources.Builder extends GeneratedMessageV3.Builder<RelatedResources.Builder> implements RelatedResourcesOrBuilder

The related resources of the primary resource.

Protobuf type google.cloud.asset.v1.RelatedResources

Static Methods

getDescriptor()

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

Methods

addAllRelatedResources(Iterable<? extends RelatedResource> values)

public RelatedResources.Builder addAllRelatedResources(Iterable<? extends RelatedResource> values)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.asset.v1.RelatedResource>
Returns
Type Description
RelatedResources.Builder

addRelatedResources(RelatedResource value)

public RelatedResources.Builder addRelatedResources(RelatedResource value)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameter
Name Description
value RelatedResource
Returns
Type Description
RelatedResources.Builder

addRelatedResources(RelatedResource.Builder builderForValue)

public RelatedResources.Builder addRelatedResources(RelatedResource.Builder builderForValue)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameter
Name Description
builderForValue RelatedResource.Builder
Returns
Type Description
RelatedResources.Builder

addRelatedResources(int index, RelatedResource value)

public RelatedResources.Builder addRelatedResources(int index, RelatedResource value)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameters
Name Description
index int
value RelatedResource
Returns
Type Description
RelatedResources.Builder

addRelatedResources(int index, RelatedResource.Builder builderForValue)

public RelatedResources.Builder addRelatedResources(int index, RelatedResource.Builder builderForValue)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameters
Name Description
index int
builderForValue RelatedResource.Builder
Returns
Type Description
RelatedResources.Builder

addRelatedResourcesBuilder()

public RelatedResource.Builder addRelatedResourcesBuilder()

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Returns
Type Description
RelatedResource.Builder

addRelatedResourcesBuilder(int index)

public RelatedResource.Builder addRelatedResourcesBuilder(int index)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameter
Name Description
index int
Returns
Type Description
RelatedResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RelatedResources build()
Returns
Type Description
RelatedResources

buildPartial()

public RelatedResources buildPartial()
Returns
Type Description
RelatedResources

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRelatedResources()

public RelatedResources.Builder clearRelatedResources()

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Returns
Type Description
RelatedResources.Builder

clone()

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

getDefaultInstanceForType()

public RelatedResources getDefaultInstanceForType()
Returns
Type Description
RelatedResources

getDescriptorForType()

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

getRelatedResources(int index)

public RelatedResource getRelatedResources(int index)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameter
Name Description
index int
Returns
Type Description
RelatedResource

getRelatedResourcesBuilder(int index)

public RelatedResource.Builder getRelatedResourcesBuilder(int index)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameter
Name Description
index int
Returns
Type Description
RelatedResource.Builder

getRelatedResourcesBuilderList()

public List<RelatedResource.Builder> getRelatedResourcesBuilderList()

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Returns
Type Description
List<Builder>

getRelatedResourcesCount()

public int getRelatedResourcesCount()

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Returns
Type Description
int

getRelatedResourcesList()

public List<RelatedResource> getRelatedResourcesList()

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Returns
Type Description
List<RelatedResource>

getRelatedResourcesOrBuilder(int index)

public RelatedResourceOrBuilder getRelatedResourcesOrBuilder(int index)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameter
Name Description
index int
Returns
Type Description
RelatedResourceOrBuilder

getRelatedResourcesOrBuilderList()

public List<? extends RelatedResourceOrBuilder> getRelatedResourcesOrBuilderList()

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Returns
Type Description
List<? extends com.google.cloud.asset.v1.RelatedResourceOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RelatedResources other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRelatedResources(int index)

public RelatedResources.Builder removeRelatedResources(int index)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameter
Name Description
index int
Returns
Type Description
RelatedResources.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRelatedResources(int index, RelatedResource value)

public RelatedResources.Builder setRelatedResources(int index, RelatedResource value)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameters
Name Description
index int
value RelatedResource
Returns
Type Description
RelatedResources.Builder

setRelatedResources(int index, RelatedResource.Builder builderForValue)

public RelatedResources.Builder setRelatedResources(int index, RelatedResource.Builder builderForValue)

The detailed related resources of the primary resource.

repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;

Parameters
Name Description
index int
builderForValue RelatedResource.Builder
Returns
Type Description
RelatedResources.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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