public static final class Asset.Builder extends GeneratedMessageV3.Builder<Asset.Builder> implements AssetOrBuilder
Cloud asset. This includes all Google Cloud Platform resources, Cloud IAM policies, and other non-GCP assets.Protobuf type
google.cloud.asset.v1p2beta1.Asset
Modifier and Type | Method and Description |
---|---|
Asset.Builder |
addAllAncestors(Iterable<String> values)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
Asset.Builder |
addAncestors(String value)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
Asset.Builder |
addAncestorsBytes(ByteString value)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
Asset.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Asset |
build() |
Asset |
buildPartial() |
Asset.Builder |
clear() |
Asset.Builder |
clearAncestors()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
Asset.Builder |
clearAssetType()
Type of the asset.
|
Asset.Builder |
clearField(Descriptors.FieldDescriptor field) |
Asset.Builder |
clearIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource.
|
Asset.Builder |
clearName()
The full name of the asset.
|
Asset.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Asset.Builder |
clearResource()
Representation of the resource.
|
Asset.Builder |
clone() |
String |
getAncestors(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
ByteString |
getAncestorsBytes(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
int |
getAncestorsCount()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
ProtocolStringList |
getAncestorsList()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
String |
getAssetType()
Type of the asset.
|
ByteString |
getAssetTypeBytes()
Type of the asset.
|
Asset |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
com.google.iam.v1.Policy |
getIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource.
|
com.google.iam.v1.Policy.Builder |
getIamPolicyBuilder()
Representation of the actual Cloud IAM policy set on a cloud resource.
|
com.google.iam.v1.PolicyOrBuilder |
getIamPolicyOrBuilder()
Representation of the actual Cloud IAM policy set on a cloud resource.
|
String |
getName()
The full name of the asset.
|
ByteString |
getNameBytes()
The full name of the asset.
|
Resource |
getResource()
Representation of the resource.
|
Resource.Builder |
getResourceBuilder()
Representation of the resource.
|
ResourceOrBuilder |
getResourceOrBuilder()
Representation of the resource.
|
boolean |
hasIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource.
|
boolean |
hasResource()
Representation of the resource.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Asset.Builder |
mergeFrom(Asset other) |
Asset.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Asset.Builder |
mergeFrom(Message other) |
Asset.Builder |
mergeIamPolicy(com.google.iam.v1.Policy value)
Representation of the actual Cloud IAM policy set on a cloud resource.
|
Asset.Builder |
mergeResource(Resource value)
Representation of the resource.
|
Asset.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Asset.Builder |
setAncestors(int index,
String value)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
Asset.Builder |
setAssetType(String value)
Type of the asset.
|
Asset.Builder |
setAssetTypeBytes(ByteString value)
Type of the asset.
|
Asset.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Asset.Builder |
setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue)
Representation of the actual Cloud IAM policy set on a cloud resource.
|
Asset.Builder |
setIamPolicy(com.google.iam.v1.Policy value)
Representation of the actual Cloud IAM policy set on a cloud resource.
|
Asset.Builder |
setName(String value)
The full name of the asset.
|
Asset.Builder |
setNameBytes(ByteString value)
The full name of the asset.
|
Asset.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Asset.Builder |
setResource(Resource.Builder builderForValue)
Representation of the resource.
|
Asset.Builder |
setResource(Resource value)
Representation of the resource.
|
Asset.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<Asset.Builder>
public Asset.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Asset.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Asset build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Asset buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Asset.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Asset.Builder>
public Asset.Builder mergeFrom(Asset other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Asset.Builder>
public Asset.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Asset.Builder>
IOException
public String getName()
The full name of the asset. For 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 name = 1;
getName
in interface AssetOrBuilder
public ByteString getNameBytes()
The full name of the asset. For 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 name = 1;
getNameBytes
in interface AssetOrBuilder
public Asset.Builder setName(String value)
The full name of the asset. For 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 name = 1;
value
- The name to set.public Asset.Builder clearName()
The full name of the asset. For 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 name = 1;
public Asset.Builder setNameBytes(ByteString value)
The full name of the asset. For 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 name = 1;
value
- The bytes for name to set.public String getAssetType()
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;
getAssetType
in interface AssetOrBuilder
public ByteString getAssetTypeBytes()
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;
getAssetTypeBytes
in interface AssetOrBuilder
public Asset.Builder setAssetType(String value)
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;
value
- The assetType to set.public Asset.Builder clearAssetType()
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;
public Asset.Builder setAssetTypeBytes(ByteString value)
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;
value
- The bytes for assetType to set.public boolean hasResource()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;
hasResource
in interface AssetOrBuilder
public Resource getResource()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;
getResource
in interface AssetOrBuilder
public Asset.Builder setResource(Resource value)
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;
public Asset.Builder setResource(Resource.Builder builderForValue)
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;
public Asset.Builder mergeResource(Resource value)
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;
public Asset.Builder clearResource()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;
public Resource.Builder getResourceBuilder()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;
public ResourceOrBuilder getResourceOrBuilder()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;
getResourceOrBuilder
in interface AssetOrBuilder
public boolean hasIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
hasIamPolicy
in interface AssetOrBuilder
public com.google.iam.v1.Policy getIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
getIamPolicy
in interface AssetOrBuilder
public Asset.Builder setIamPolicy(com.google.iam.v1.Policy value)
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
public Asset.Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue)
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
public Asset.Builder mergeIamPolicy(com.google.iam.v1.Policy value)
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
public Asset.Builder clearIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
public com.google.iam.v1.Policy.Builder getIamPolicyBuilder()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
public com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder()
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.
.google.iam.v1.Policy iam_policy = 4;
getIamPolicyOrBuilder
in interface AssetOrBuilder
public ProtocolStringList getAncestorsList()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;
getAncestorsList
in interface AssetOrBuilder
public int getAncestorsCount()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;
getAncestorsCount
in interface AssetOrBuilder
public String getAncestors(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;
getAncestors
in interface AssetOrBuilder
index
- The index of the element to return.public ByteString getAncestorsBytes(int index)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;
getAncestorsBytes
in interface AssetOrBuilder
index
- The index of the value to return.public Asset.Builder setAncestors(int index, String value)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;
index
- The index to set the value at.value
- The ancestors to set.public Asset.Builder addAncestors(String value)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;
value
- The ancestors to add.public Asset.Builder addAllAncestors(Iterable<String> values)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;
values
- The ancestors to add.public Asset.Builder clearAncestors()
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;
public Asset.Builder addAncestorsBytes(ByteString value)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"]
repeated string ancestors = 6;
value
- The bytes of the ancestors to add.public final Asset.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Asset.Builder>
public final Asset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Asset.Builder>
Copyright © 2022 Google LLC. All rights reserved.