Class RelatedResources.Builder (3.6.0)

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.asset.v1.RelatedResource>
Returns
TypeDescription
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
NameDescription
valueRelatedResource
Returns
TypeDescription
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
NameDescription
builderForValueRelatedResource.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRelatedResource
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRelatedResource.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RelatedResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RelatedResources build()
Returns
TypeDescription
RelatedResources

buildPartial()

public RelatedResources buildPartial()
Returns
TypeDescription
RelatedResources

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RelatedResources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
RelatedResources.Builder

clone()

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

getDefaultInstanceForType()

public RelatedResources getDefaultInstanceForType()
Returns
TypeDescription
RelatedResources

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getRelatedResourcesCount()

public int getRelatedResourcesCount()

The detailed related resources of the primary resource.

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

Returns
TypeDescription
int

getRelatedResourcesList()

public List<RelatedResource> getRelatedResourcesList()

The detailed related resources of the primary resource.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.asset.v1.RelatedResourceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RelatedResources other)

public RelatedResources.Builder mergeFrom(RelatedResources other)
Parameter
NameDescription
otherRelatedResources
Returns
TypeDescription
RelatedResources.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public RelatedResources.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueRelatedResource
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRelatedResource.Builder
Returns
TypeDescription
RelatedResources.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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