Class Asset.Builder

  • All Implemented Interfaces:
    AssetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Asset

    public static final class Asset.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
    implements AssetOrBuilder
     Security Command Center representation of a Google Cloud
     resource.
    
     The Asset is a Security Command Center resource that captures information
     about a single Google Cloud resource. All modifications to an Asset are only
     within the context of Security Command Center and don't affect the referenced
     Google Cloud resource.
     
    Protobuf type google.cloud.securitycenter.v1p1beta1.Asset
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • clear

        public Asset.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • getDefaultInstanceForType

        public Asset getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Asset build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Asset buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Asset.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • setField

        public Asset.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                      Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • clearField

        public Asset.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • clearOneof

        public Asset.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • setRepeatedField

        public Asset.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              int index,
                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • addRepeatedField

        public Asset.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • mergeFrom

        public Asset.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Asset.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • mergeFrom

        public Asset.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Asset.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The relative resource name of this asset. See:
         https://cloud.google.com/apis/design/resource_names#relative_resource_name
         Example:
         "organizations/{organization_id}/assets/{asset_id}".
         
        string name = 1;
        Specified by:
        getName in interface AssetOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The relative resource name of this asset. See:
         https://cloud.google.com/apis/design/resource_names#relative_resource_name
         Example:
         "organizations/{organization_id}/assets/{asset_id}".
         
        string name = 1;
        Specified by:
        getNameBytes in interface AssetOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Asset.Builder setName​(String value)
         The relative resource name of this asset. See:
         https://cloud.google.com/apis/design/resource_names#relative_resource_name
         Example:
         "organizations/{organization_id}/assets/{asset_id}".
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Asset.Builder clearName()
         The relative resource name of this asset. See:
         https://cloud.google.com/apis/design/resource_names#relative_resource_name
         Example:
         "organizations/{organization_id}/assets/{asset_id}".
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Asset.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The relative resource name of this asset. See:
         https://cloud.google.com/apis/design/resource_names#relative_resource_name
         Example:
         "organizations/{organization_id}/assets/{asset_id}".
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasSecurityCenterProperties

        public boolean hasSecurityCenterProperties()
         Security Command Center managed properties. These properties are managed by
         Security Command Center and cannot be modified by the user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
        Specified by:
        hasSecurityCenterProperties in interface AssetOrBuilder
        Returns:
        Whether the securityCenterProperties field is set.
      • getSecurityCenterProperties

        public Asset.SecurityCenterProperties getSecurityCenterProperties()
         Security Command Center managed properties. These properties are managed by
         Security Command Center and cannot be modified by the user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
        Specified by:
        getSecurityCenterProperties in interface AssetOrBuilder
        Returns:
        The securityCenterProperties.
      • setSecurityCenterProperties

        public Asset.Builder setSecurityCenterProperties​(Asset.SecurityCenterProperties value)
         Security Command Center managed properties. These properties are managed by
         Security Command Center and cannot be modified by the user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
      • setSecurityCenterProperties

        public Asset.Builder setSecurityCenterProperties​(Asset.SecurityCenterProperties.Builder builderForValue)
         Security Command Center managed properties. These properties are managed by
         Security Command Center and cannot be modified by the user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
      • mergeSecurityCenterProperties

        public Asset.Builder mergeSecurityCenterProperties​(Asset.SecurityCenterProperties value)
         Security Command Center managed properties. These properties are managed by
         Security Command Center and cannot be modified by the user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
      • clearSecurityCenterProperties

        public Asset.Builder clearSecurityCenterProperties()
         Security Command Center managed properties. These properties are managed by
         Security Command Center and cannot be modified by the user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
      • getSecurityCenterPropertiesBuilder

        public Asset.SecurityCenterProperties.Builder getSecurityCenterPropertiesBuilder()
         Security Command Center managed properties. These properties are managed by
         Security Command Center and cannot be modified by the user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
      • getSecurityCenterPropertiesOrBuilder

        public Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder()
         Security Command Center managed properties. These properties are managed by
         Security Command Center and cannot be modified by the user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2;
        Specified by:
        getSecurityCenterPropertiesOrBuilder in interface AssetOrBuilder
      • getResourcePropertiesCount

        public int getResourcePropertiesCount()
        Description copied from interface: AssetOrBuilder
         Resource managed properties. These properties are managed and defined by
         the Google Cloud resource and cannot be modified by the user.
         
        map<string, .google.protobuf.Value> resource_properties = 7;
        Specified by:
        getResourcePropertiesCount in interface AssetOrBuilder
      • containsResourceProperties

        public boolean containsResourceProperties​(String key)
         Resource managed properties. These properties are managed and defined by
         the Google Cloud resource and cannot be modified by the user.
         
        map<string, .google.protobuf.Value> resource_properties = 7;
        Specified by:
        containsResourceProperties in interface AssetOrBuilder
      • getResourcePropertiesMap

        public Map<String,​com.google.protobuf.Value> getResourcePropertiesMap()
         Resource managed properties. These properties are managed and defined by
         the Google Cloud resource and cannot be modified by the user.
         
        map<string, .google.protobuf.Value> resource_properties = 7;
        Specified by:
        getResourcePropertiesMap in interface AssetOrBuilder
      • getResourcePropertiesOrDefault

        public com.google.protobuf.Value getResourcePropertiesOrDefault​(String key,
                                                                        com.google.protobuf.Value defaultValue)
         Resource managed properties. These properties are managed and defined by
         the Google Cloud resource and cannot be modified by the user.
         
        map<string, .google.protobuf.Value> resource_properties = 7;
        Specified by:
        getResourcePropertiesOrDefault in interface AssetOrBuilder
      • getResourcePropertiesOrThrow

        public com.google.protobuf.Value getResourcePropertiesOrThrow​(String key)
         Resource managed properties. These properties are managed and defined by
         the Google Cloud resource and cannot be modified by the user.
         
        map<string, .google.protobuf.Value> resource_properties = 7;
        Specified by:
        getResourcePropertiesOrThrow in interface AssetOrBuilder
      • clearResourceProperties

        public Asset.Builder clearResourceProperties()
      • removeResourceProperties

        public Asset.Builder removeResourceProperties​(String key)
         Resource managed properties. These properties are managed and defined by
         the Google Cloud resource and cannot be modified by the user.
         
        map<string, .google.protobuf.Value> resource_properties = 7;
      • getMutableResourceProperties

        @Deprecated
        public Map<String,​com.google.protobuf.Value> getMutableResourceProperties()
        Deprecated.
        Use alternate mutation accessors instead.
      • putResourceProperties

        public Asset.Builder putResourceProperties​(String key,
                                                   com.google.protobuf.Value value)
         Resource managed properties. These properties are managed and defined by
         the Google Cloud resource and cannot be modified by the user.
         
        map<string, .google.protobuf.Value> resource_properties = 7;
      • putAllResourceProperties

        public Asset.Builder putAllResourceProperties​(Map<String,​com.google.protobuf.Value> values)
         Resource managed properties. These properties are managed and defined by
         the Google Cloud resource and cannot be modified by the user.
         
        map<string, .google.protobuf.Value> resource_properties = 7;
      • hasSecurityMarks

        public boolean hasSecurityMarks()
         User specified security marks. These marks are entirely managed by the user
         and come from the SecurityMarks resource that belongs to the asset.
         
        .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
        Specified by:
        hasSecurityMarks in interface AssetOrBuilder
        Returns:
        Whether the securityMarks field is set.
      • getSecurityMarks

        public SecurityMarks getSecurityMarks()
         User specified security marks. These marks are entirely managed by the user
         and come from the SecurityMarks resource that belongs to the asset.
         
        .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
        Specified by:
        getSecurityMarks in interface AssetOrBuilder
        Returns:
        The securityMarks.
      • setSecurityMarks

        public Asset.Builder setSecurityMarks​(SecurityMarks value)
         User specified security marks. These marks are entirely managed by the user
         and come from the SecurityMarks resource that belongs to the asset.
         
        .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      • setSecurityMarks

        public Asset.Builder setSecurityMarks​(SecurityMarks.Builder builderForValue)
         User specified security marks. These marks are entirely managed by the user
         and come from the SecurityMarks resource that belongs to the asset.
         
        .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      • mergeSecurityMarks

        public Asset.Builder mergeSecurityMarks​(SecurityMarks value)
         User specified security marks. These marks are entirely managed by the user
         and come from the SecurityMarks resource that belongs to the asset.
         
        .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      • clearSecurityMarks

        public Asset.Builder clearSecurityMarks()
         User specified security marks. These marks are entirely managed by the user
         and come from the SecurityMarks resource that belongs to the asset.
         
        .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      • getSecurityMarksBuilder

        public SecurityMarks.Builder getSecurityMarksBuilder()
         User specified security marks. These marks are entirely managed by the user
         and come from the SecurityMarks resource that belongs to the asset.
         
        .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      • getSecurityMarksOrBuilder

        public SecurityMarksOrBuilder getSecurityMarksOrBuilder()
         User specified security marks. These marks are entirely managed by the user
         and come from the SecurityMarks resource that belongs to the asset.
         
        .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
        Specified by:
        getSecurityMarksOrBuilder in interface AssetOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         The time at which the asset was created in Security Command Center.
         
        .google.protobuf.Timestamp create_time = 9;
        Specified by:
        hasCreateTime in interface AssetOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         The time at which the asset was created in Security Command Center.
         
        .google.protobuf.Timestamp create_time = 9;
        Specified by:
        getCreateTime in interface AssetOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Asset.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         The time at which the asset was created in Security Command Center.
         
        .google.protobuf.Timestamp create_time = 9;
      • setCreateTime

        public Asset.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time at which the asset was created in Security Command Center.
         
        .google.protobuf.Timestamp create_time = 9;
      • mergeCreateTime

        public Asset.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         The time at which the asset was created in Security Command Center.
         
        .google.protobuf.Timestamp create_time = 9;
      • clearCreateTime

        public Asset.Builder clearCreateTime()
         The time at which the asset was created in Security Command Center.
         
        .google.protobuf.Timestamp create_time = 9;
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         The time at which the asset was created in Security Command Center.
         
        .google.protobuf.Timestamp create_time = 9;
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         The time at which the asset was created in Security Command Center.
         
        .google.protobuf.Timestamp create_time = 9;
        Specified by:
        getCreateTimeOrBuilder in interface AssetOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         The time at which the asset was last updated or added in Cloud SCC.
         
        .google.protobuf.Timestamp update_time = 10;
        Specified by:
        hasUpdateTime in interface AssetOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         The time at which the asset was last updated or added in Cloud SCC.
         
        .google.protobuf.Timestamp update_time = 10;
        Specified by:
        getUpdateTime in interface AssetOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Asset.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         The time at which the asset was last updated or added in Cloud SCC.
         
        .google.protobuf.Timestamp update_time = 10;
      • setUpdateTime

        public Asset.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time at which the asset was last updated or added in Cloud SCC.
         
        .google.protobuf.Timestamp update_time = 10;
      • mergeUpdateTime

        public Asset.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         The time at which the asset was last updated or added in Cloud SCC.
         
        .google.protobuf.Timestamp update_time = 10;
      • clearUpdateTime

        public Asset.Builder clearUpdateTime()
         The time at which the asset was last updated or added in Cloud SCC.
         
        .google.protobuf.Timestamp update_time = 10;
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         The time at which the asset was last updated or added in Cloud SCC.
         
        .google.protobuf.Timestamp update_time = 10;
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         The time at which the asset was last updated or added in Cloud SCC.
         
        .google.protobuf.Timestamp update_time = 10;
        Specified by:
        getUpdateTimeOrBuilder in interface AssetOrBuilder
      • hasIamPolicy

        public boolean hasIamPolicy()
         Cloud IAM Policy information associated with the Google Cloud resource
         described by the Security Command Center asset. This information is managed
         and defined by the Google Cloud resource and cannot be modified by the
         user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
        Specified by:
        hasIamPolicy in interface AssetOrBuilder
        Returns:
        Whether the iamPolicy field is set.
      • getIamPolicy

        public Asset.IamPolicy getIamPolicy()
         Cloud IAM Policy information associated with the Google Cloud resource
         described by the Security Command Center asset. This information is managed
         and defined by the Google Cloud resource and cannot be modified by the
         user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
        Specified by:
        getIamPolicy in interface AssetOrBuilder
        Returns:
        The iamPolicy.
      • setIamPolicy

        public Asset.Builder setIamPolicy​(Asset.IamPolicy value)
         Cloud IAM Policy information associated with the Google Cloud resource
         described by the Security Command Center asset. This information is managed
         and defined by the Google Cloud resource and cannot be modified by the
         user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      • setIamPolicy

        public Asset.Builder setIamPolicy​(Asset.IamPolicy.Builder builderForValue)
         Cloud IAM Policy information associated with the Google Cloud resource
         described by the Security Command Center asset. This information is managed
         and defined by the Google Cloud resource and cannot be modified by the
         user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      • mergeIamPolicy

        public Asset.Builder mergeIamPolicy​(Asset.IamPolicy value)
         Cloud IAM Policy information associated with the Google Cloud resource
         described by the Security Command Center asset. This information is managed
         and defined by the Google Cloud resource and cannot be modified by the
         user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      • clearIamPolicy

        public Asset.Builder clearIamPolicy()
         Cloud IAM Policy information associated with the Google Cloud resource
         described by the Security Command Center asset. This information is managed
         and defined by the Google Cloud resource and cannot be modified by the
         user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      • getIamPolicyBuilder

        public Asset.IamPolicy.Builder getIamPolicyBuilder()
         Cloud IAM Policy information associated with the Google Cloud resource
         described by the Security Command Center asset. This information is managed
         and defined by the Google Cloud resource and cannot be modified by the
         user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      • getIamPolicyOrBuilder

        public Asset.IamPolicyOrBuilder getIamPolicyOrBuilder()
         Cloud IAM Policy information associated with the Google Cloud resource
         described by the Security Command Center asset. This information is managed
         and defined by the Google Cloud resource and cannot be modified by the
         user.
         
        .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
        Specified by:
        getIamPolicyOrBuilder in interface AssetOrBuilder
      • getCanonicalName

        public String getCanonicalName()
         The canonical name of the resource. It's either
         "organizations/{organization_id}/assets/{asset_id}",
         "folders/{folder_id}/assets/{asset_id}" or
         "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
         ancestor of the resource.
         
        string canonical_name = 13;
        Specified by:
        getCanonicalName in interface AssetOrBuilder
        Returns:
        The canonicalName.
      • getCanonicalNameBytes

        public com.google.protobuf.ByteString getCanonicalNameBytes()
         The canonical name of the resource. It's either
         "organizations/{organization_id}/assets/{asset_id}",
         "folders/{folder_id}/assets/{asset_id}" or
         "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
         ancestor of the resource.
         
        string canonical_name = 13;
        Specified by:
        getCanonicalNameBytes in interface AssetOrBuilder
        Returns:
        The bytes for canonicalName.
      • setCanonicalName

        public Asset.Builder setCanonicalName​(String value)
         The canonical name of the resource. It's either
         "organizations/{organization_id}/assets/{asset_id}",
         "folders/{folder_id}/assets/{asset_id}" or
         "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
         ancestor of the resource.
         
        string canonical_name = 13;
        Parameters:
        value - The canonicalName to set.
        Returns:
        This builder for chaining.
      • clearCanonicalName

        public Asset.Builder clearCanonicalName()
         The canonical name of the resource. It's either
         "organizations/{organization_id}/assets/{asset_id}",
         "folders/{folder_id}/assets/{asset_id}" or
         "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
         ancestor of the resource.
         
        string canonical_name = 13;
        Returns:
        This builder for chaining.
      • setCanonicalNameBytes

        public Asset.Builder setCanonicalNameBytes​(com.google.protobuf.ByteString value)
         The canonical name of the resource. It's either
         "organizations/{organization_id}/assets/{asset_id}",
         "folders/{folder_id}/assets/{asset_id}" or
         "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
         ancestor of the resource.
         
        string canonical_name = 13;
        Parameters:
        value - The bytes for canonicalName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Asset.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • mergeUnknownFields

        public final Asset.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>