public static final class RelatedAsset.Builder extends GeneratedMessageV3.Builder<RelatedAsset.Builder> implements RelatedAssetOrBuilder
An asset identifier in Google Cloud which contains its name, type and ancestors. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.Protobuf type
google.cloud.asset.v1.RelatedAsset
Modifier and Type | Method and Description |
---|---|
RelatedAsset.Builder |
addAllAncestors(Iterable<String> values)
The ancestors of an asset in Google Cloud [resource
hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
represented as a list of relative resource names.
|
RelatedAsset.Builder |
addAncestors(String value)
The ancestors of an asset in Google Cloud [resource
hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
represented as a list of relative resource names.
|
RelatedAsset.Builder |
addAncestorsBytes(ByteString value)
The ancestors of an asset in Google Cloud [resource
hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
represented as a list of relative resource names.
|
RelatedAsset.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
RelatedAsset |
build() |
RelatedAsset |
buildPartial() |
RelatedAsset.Builder |
clear() |
RelatedAsset.Builder |
clearAncestors()
The ancestors of an asset in Google Cloud [resource
hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
represented as a list of relative resource names.
|
RelatedAsset.Builder |
clearAsset()
The full name of the asset.
|
RelatedAsset.Builder |
clearAssetType()
The type of the asset.
|
RelatedAsset.Builder |
clearField(Descriptors.FieldDescriptor field) |
RelatedAsset.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
RelatedAsset.Builder |
clearRelationshipType()
The unique identifier of the relationship type.
|
RelatedAsset.Builder |
clone() |
String |
getAncestors(int index)
The ancestors of an asset in Google Cloud [resource
hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
represented as a list of relative resource names.
|
ByteString |
getAncestorsBytes(int index)
The ancestors of an asset in Google Cloud [resource
hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
represented as a list of relative resource names.
|
int |
getAncestorsCount()
The ancestors of an asset in Google Cloud [resource
hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
represented as a list of relative resource names.
|
ProtocolStringList |
getAncestorsList()
The ancestors of an asset in Google Cloud [resource
hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
represented as a list of relative resource names.
|
String |
getAsset()
The full name of the asset.
|
ByteString |
getAssetBytes()
The full name of the asset.
|
String |
getAssetType()
The type of the asset.
|
ByteString |
getAssetTypeBytes()
The type of the asset.
|
RelatedAsset |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getRelationshipType()
The unique identifier of the relationship type.
|
ByteString |
getRelationshipTypeBytes()
The unique identifier of the relationship type.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RelatedAsset.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
RelatedAsset.Builder |
mergeFrom(Message other) |
RelatedAsset.Builder |
mergeFrom(RelatedAsset other) |
RelatedAsset.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
RelatedAsset.Builder |
setAncestors(int index,
String value)
The ancestors of an asset in Google Cloud [resource
hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
represented as a list of relative resource names.
|
RelatedAsset.Builder |
setAsset(String value)
The full name of the asset.
|
RelatedAsset.Builder |
setAssetBytes(ByteString value)
The full name of the asset.
|
RelatedAsset.Builder |
setAssetType(String value)
The type of the asset.
|
RelatedAsset.Builder |
setAssetTypeBytes(ByteString value)
The type of the asset.
|
RelatedAsset.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
RelatedAsset.Builder |
setRelationshipType(String value)
The unique identifier of the relationship type.
|
RelatedAsset.Builder |
setRelationshipTypeBytes(ByteString value)
The unique identifier of the relationship type.
|
RelatedAsset.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
RelatedAsset.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public RelatedAsset.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public RelatedAsset getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public RelatedAsset build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public RelatedAsset buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public RelatedAsset.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public RelatedAsset.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public RelatedAsset.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public RelatedAsset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public RelatedAsset.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public RelatedAsset.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public RelatedAsset.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<RelatedAsset.Builder>
public RelatedAsset.Builder mergeFrom(RelatedAsset other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public RelatedAsset.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<RelatedAsset.Builder>
IOException
public String getAsset()
The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
string asset = 1 [(.google.api.resource_reference) = { ... }
getAsset
in interface RelatedAssetOrBuilder
public ByteString getAssetBytes()
The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
string asset = 1 [(.google.api.resource_reference) = { ... }
getAssetBytes
in interface RelatedAssetOrBuilder
public RelatedAsset.Builder setAsset(String value)
The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
string asset = 1 [(.google.api.resource_reference) = { ... }
value
- The asset to set.public RelatedAsset.Builder clearAsset()
The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
string asset = 1 [(.google.api.resource_reference) = { ... }
public RelatedAsset.Builder setAssetBytes(ByteString value)
The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
string asset = 1 [(.google.api.resource_reference) = { ... }
value
- The bytes for asset to set.public String getAssetType()
The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
string asset_type = 2;
getAssetType
in interface RelatedAssetOrBuilder
public ByteString getAssetTypeBytes()
The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
string asset_type = 2;
getAssetTypeBytes
in interface RelatedAssetOrBuilder
public RelatedAsset.Builder setAssetType(String value)
The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
string asset_type = 2;
value
- The assetType to set.public RelatedAsset.Builder clearAssetType()
The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
string asset_type = 2;
public RelatedAsset.Builder setAssetTypeBytes(ByteString value)
The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
string asset_type = 2;
value
- The bytes for assetType to set.public ProtocolStringList getAncestorsList()
The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
getAncestorsList
in interface RelatedAssetOrBuilder
public int getAncestorsCount()
The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
getAncestorsCount
in interface RelatedAssetOrBuilder
public String getAncestors(int index)
The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
getAncestors
in interface RelatedAssetOrBuilder
index
- The index of the element to return.public ByteString getAncestorsBytes(int index)
The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
getAncestorsBytes
in interface RelatedAssetOrBuilder
index
- The index of the value to return.public RelatedAsset.Builder setAncestors(int index, String value)
The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
index
- The index to set the value at.value
- The ancestors to set.public RelatedAsset.Builder addAncestors(String value)
The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
value
- The ancestors to add.public RelatedAsset.Builder addAllAncestors(Iterable<String> values)
The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
values
- The ancestors to add.public RelatedAsset.Builder clearAncestors()
The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
public RelatedAsset.Builder addAncestorsBytes(ByteString value)
The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
repeated string ancestors = 3;
value
- The bytes of the ancestors to add.public String getRelationshipType()
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string relationship_type = 4;
getRelationshipType
in interface RelatedAssetOrBuilder
public ByteString getRelationshipTypeBytes()
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string relationship_type = 4;
getRelationshipTypeBytes
in interface RelatedAssetOrBuilder
public RelatedAsset.Builder setRelationshipType(String value)
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string relationship_type = 4;
value
- The relationshipType to set.public RelatedAsset.Builder clearRelationshipType()
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string relationship_type = 4;
public RelatedAsset.Builder setRelationshipTypeBytes(ByteString value)
The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
string relationship_type = 4;
value
- The bytes for relationshipType to set.public final RelatedAsset.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
public final RelatedAsset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<RelatedAsset.Builder>
Copyright © 2022 Google LLC. All rights reserved.