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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
public RelatedResources.Builder addRelatedResources(RelatedResource value)
The detailed related resources of the primary resource.
repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;
Parameter
Returns
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
Returns
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
Returns
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
Returns
public RelatedResource.Builder addRelatedResourcesBuilder()
The detailed related resources of the primary resource.
repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;
Returns
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
public RelatedResources.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public RelatedResources build()
Returns
public RelatedResources buildPartial()
Returns
public RelatedResources.Builder clear()
Returns
Overrides
public RelatedResources.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public RelatedResources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public RelatedResources.Builder clearRelatedResources()
The detailed related resources of the primary resource.
repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;
Returns
public RelatedResources.Builder clone()
Returns
Overrides
public RelatedResources getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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
public List<RelatedResource.Builder> getRelatedResourcesBuilderList()
The detailed related resources of the primary resource.
repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;
Returns
public int getRelatedResourcesCount()
The detailed related resources of the primary resource.
repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;
Returns
public List<RelatedResource> getRelatedResourcesList()
The detailed related resources of the primary resource.
repeated .google.cloud.asset.v1.RelatedResource related_resources = 1;
Returns
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
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> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public RelatedResources.Builder mergeFrom(RelatedResources other)
Parameter
Returns
public RelatedResources.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public RelatedResources.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final RelatedResources.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
public RelatedResources.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
public RelatedResources.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final RelatedResources.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides