public static final class Asset.Builder extends com.google.protobuf.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(com.google.protobuf.ByteString value)
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
represented as a list of relative resource names.
|
Asset.Builder |
addRepeatedField(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field) |
Asset.Builder |
clearIamPolicy()
Representation of the actual Cloud IAM policy set on a cloud resource.
|
Asset.Builder |
clearIamPolicyName()
Cloud IAM policy name of the Cloud IAM policy set on a cloud resource.
|
Asset.Builder |
clearName()
The full name of the asset.
|
Asset.Builder |
clearOneof(com.google.protobuf.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.
|
com.google.protobuf.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.
|
com.google.protobuf.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.
|
com.google.protobuf.ByteString |
getAssetTypeBytes()
Type of the asset.
|
Asset |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.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.protobuf.ByteString |
getIamPolicyName()
Cloud IAM policy name of the 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.
|
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Asset.Builder |
mergeFrom(Asset other) |
Asset.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Asset.Builder |
mergeFrom(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.ByteString value)
Type of the asset.
|
Asset.Builder |
setField(com.google.protobuf.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 |
setIamPolicyName(com.google.protobuf.ByteString value)
Cloud IAM policy name of the Cloud IAM policy set on a cloud resource.
|
Asset.Builder |
setName(String value)
The full name of the asset.
|
Asset.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The full name of the asset.
|
Asset.Builder |
setRepeatedField(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Asset build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Asset buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Asset.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Asset.Builder>public Asset.Builder mergeFrom(Asset other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public Asset.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Asset.Builder>IOExceptionpublic 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 AssetOrBuilderpublic com.google.protobuf.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 AssetOrBuilderpublic 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(com.google.protobuf.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 AssetOrBuilderpublic com.google.protobuf.ByteString getAssetTypeBytes()
Type of the asset. Example: "compute.googleapis.com/Disk".
string asset_type = 2;getAssetTypeBytes in interface AssetOrBuilderpublic 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(com.google.protobuf.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 AssetOrBuilderpublic Resource getResource()
Representation of the resource.
.google.cloud.asset.v1p2beta1.Resource resource = 3;getResource in interface AssetOrBuilderpublic 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 AssetOrBuilderpublic 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 AssetOrBuilderpublic 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 AssetOrBuilderpublic 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 AssetOrBuilderpublic com.google.protobuf.ByteString getIamPolicyName()
Cloud IAM policy name of the Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy name associated with it.
bytes iam_policy_name = 5;getIamPolicyName in interface AssetOrBuilderpublic Asset.Builder setIamPolicyName(com.google.protobuf.ByteString value)
Cloud IAM policy name of the Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy name associated with it.
bytes iam_policy_name = 5;value - The iamPolicyName to set.public Asset.Builder clearIamPolicyName()
Cloud IAM policy name of the Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy name associated with it.
bytes iam_policy_name = 5;public com.google.protobuf.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 ending at a visible 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 AssetOrBuilderpublic 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 ending at a visible 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 AssetOrBuilderpublic 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 ending at a visible 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 AssetOrBuilderindex - The index of the element to return.public com.google.protobuf.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 ending at a visible 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 AssetOrBuilderindex - 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 ending at a visible 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 ending at a visible 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 ending at a visible 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 ending at a visible 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(com.google.protobuf.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 ending at a visible 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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>public final Asset.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>Copyright © 2020 Google LLC. All rights reserved.