Class ProtectedResource.Builder

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

    public static final class ProtectedResource.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ProtectedResource.Builder>
    implements ProtectedResourceOrBuilder
     Metadata about a resource protected by a Cloud KMS key.
     
    Protobuf type google.cloud.kms.inventory.v1.ProtectedResource
    • 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<ProtectedResource.Builder>
      • internalGetMutableMapField

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

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

        public ProtectedResource.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<ProtectedResource.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<ProtectedResource.Builder>
      • getDefaultInstanceForType

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

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

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

        public ProtectedResource.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<ProtectedResource.Builder>
      • setField

        public ProtectedResource.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<ProtectedResource.Builder>
      • clearField

        public ProtectedResource.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<ProtectedResource.Builder>
      • clearOneof

        public ProtectedResource.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<ProtectedResource.Builder>
      • setRepeatedField

        public ProtectedResource.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<ProtectedResource.Builder>
      • addRepeatedField

        public ProtectedResource.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<ProtectedResource.Builder>
      • mergeFrom

        public ProtectedResource.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<ProtectedResource.Builder>
      • isInitialized

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

        public ProtectedResource.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<ProtectedResource.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The full resource name of the resource.
         Example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         
        string name = 1;
        Specified by:
        getName in interface ProtectedResourceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The full resource name of the resource.
         Example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ProtectedResourceOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ProtectedResource.Builder setName​(String value)
         The full resource name of the resource.
         Example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ProtectedResource.Builder clearName()
         The full resource name of the resource.
         Example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public ProtectedResource.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The full resource name of the resource.
         Example:
         `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getProjectBytes

        public com.google.protobuf.ByteString getProjectBytes()
         Format: `projects/{PROJECT_NUMBER}`.
         
        string project = 2;
        Specified by:
        getProjectBytes in interface ProtectedResourceOrBuilder
        Returns:
        The bytes for project.
      • setProject

        public ProtectedResource.Builder setProject​(String value)
         Format: `projects/{PROJECT_NUMBER}`.
         
        string project = 2;
        Parameters:
        value - The project to set.
        Returns:
        This builder for chaining.
      • clearProject

        public ProtectedResource.Builder clearProject()
         Format: `projects/{PROJECT_NUMBER}`.
         
        string project = 2;
        Returns:
        This builder for chaining.
      • setProjectBytes

        public ProtectedResource.Builder setProjectBytes​(com.google.protobuf.ByteString value)
         Format: `projects/{PROJECT_NUMBER}`.
         
        string project = 2;
        Parameters:
        value - The bytes for project to set.
        Returns:
        This builder for chaining.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         The ID of the project that owns the resource.
         
        string project_id = 9;
        Specified by:
        getProjectIdBytes in interface ProtectedResourceOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public ProtectedResource.Builder setProjectId​(String value)
         The ID of the project that owns the resource.
         
        string project_id = 9;
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public ProtectedResource.Builder clearProjectId()
         The ID of the project that owns the resource.
         
        string project_id = 9;
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public ProtectedResource.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         The ID of the project that owns the resource.
         
        string project_id = 9;
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getCloudProduct

        public String getCloudProduct()
         The Cloud product that owns the resource.
         Example: `compute`
         
        string cloud_product = 8;
        Specified by:
        getCloudProduct in interface ProtectedResourceOrBuilder
        Returns:
        The cloudProduct.
      • getCloudProductBytes

        public com.google.protobuf.ByteString getCloudProductBytes()
         The Cloud product that owns the resource.
         Example: `compute`
         
        string cloud_product = 8;
        Specified by:
        getCloudProductBytes in interface ProtectedResourceOrBuilder
        Returns:
        The bytes for cloudProduct.
      • setCloudProduct

        public ProtectedResource.Builder setCloudProduct​(String value)
         The Cloud product that owns the resource.
         Example: `compute`
         
        string cloud_product = 8;
        Parameters:
        value - The cloudProduct to set.
        Returns:
        This builder for chaining.
      • clearCloudProduct

        public ProtectedResource.Builder clearCloudProduct()
         The Cloud product that owns the resource.
         Example: `compute`
         
        string cloud_product = 8;
        Returns:
        This builder for chaining.
      • setCloudProductBytes

        public ProtectedResource.Builder setCloudProductBytes​(com.google.protobuf.ByteString value)
         The Cloud product that owns the resource.
         Example: `compute`
         
        string cloud_product = 8;
        Parameters:
        value - The bytes for cloudProduct to set.
        Returns:
        This builder for chaining.
      • getResourceTypeBytes

        public com.google.protobuf.ByteString getResourceTypeBytes()
         Example: `compute.googleapis.com/Disk`
         
        string resource_type = 3;
        Specified by:
        getResourceTypeBytes in interface ProtectedResourceOrBuilder
        Returns:
        The bytes for resourceType.
      • setResourceType

        public ProtectedResource.Builder setResourceType​(String value)
         Example: `compute.googleapis.com/Disk`
         
        string resource_type = 3;
        Parameters:
        value - The resourceType to set.
        Returns:
        This builder for chaining.
      • clearResourceType

        public ProtectedResource.Builder clearResourceType()
         Example: `compute.googleapis.com/Disk`
         
        string resource_type = 3;
        Returns:
        This builder for chaining.
      • setResourceTypeBytes

        public ProtectedResource.Builder setResourceTypeBytes​(com.google.protobuf.ByteString value)
         Example: `compute.googleapis.com/Disk`
         
        string resource_type = 3;
        Parameters:
        value - The bytes for resourceType to set.
        Returns:
        This builder for chaining.
      • getLocation

        public String getLocation()
         Location can be `global`, regional like `us-east1`, or zonal like
         `us-west1-b`.
         
        string location = 4;
        Specified by:
        getLocation in interface ProtectedResourceOrBuilder
        Returns:
        The location.
      • getLocationBytes

        public com.google.protobuf.ByteString getLocationBytes()
         Location can be `global`, regional like `us-east1`, or zonal like
         `us-west1-b`.
         
        string location = 4;
        Specified by:
        getLocationBytes in interface ProtectedResourceOrBuilder
        Returns:
        The bytes for location.
      • setLocation

        public ProtectedResource.Builder setLocation​(String value)
         Location can be `global`, regional like `us-east1`, or zonal like
         `us-west1-b`.
         
        string location = 4;
        Parameters:
        value - The location to set.
        Returns:
        This builder for chaining.
      • clearLocation

        public ProtectedResource.Builder clearLocation()
         Location can be `global`, regional like `us-east1`, or zonal like
         `us-west1-b`.
         
        string location = 4;
        Returns:
        This builder for chaining.
      • setLocationBytes

        public ProtectedResource.Builder setLocationBytes​(com.google.protobuf.ByteString value)
         Location can be `global`, regional like `us-east1`, or zonal like
         `us-west1-b`.
         
        string location = 4;
        Parameters:
        value - The bytes for location to set.
        Returns:
        This builder for chaining.
      • containsLabels

        public boolean containsLabels​(String key)
         A key-value pair of the resource's labels (v1) to their values.
         
        map<string, string> labels = 5;
        Specified by:
        containsLabels in interface ProtectedResourceOrBuilder
      • removeLabels

        public ProtectedResource.Builder removeLabels​(String key)
         A key-value pair of the resource's labels (v1) to their values.
         
        map<string, string> labels = 5;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • getCryptoKeyVersion

        public String getCryptoKeyVersion()
         The name of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key version data
         to Asset Inventory. If there are multiple key versions protecting the
         resource, then this is same value as the first element of
         crypto_key_versions.
         
        string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }
        Specified by:
        getCryptoKeyVersion in interface ProtectedResourceOrBuilder
        Returns:
        The cryptoKeyVersion.
      • getCryptoKeyVersionBytes

        public com.google.protobuf.ByteString getCryptoKeyVersionBytes()
         The name of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key version data
         to Asset Inventory. If there are multiple key versions protecting the
         resource, then this is same value as the first element of
         crypto_key_versions.
         
        string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }
        Specified by:
        getCryptoKeyVersionBytes in interface ProtectedResourceOrBuilder
        Returns:
        The bytes for cryptoKeyVersion.
      • setCryptoKeyVersion

        public ProtectedResource.Builder setCryptoKeyVersion​(String value)
         The name of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key version data
         to Asset Inventory. If there are multiple key versions protecting the
         resource, then this is same value as the first element of
         crypto_key_versions.
         
        string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The cryptoKeyVersion to set.
        Returns:
        This builder for chaining.
      • clearCryptoKeyVersion

        public ProtectedResource.Builder clearCryptoKeyVersion()
         The name of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key version data
         to Asset Inventory. If there are multiple key versions protecting the
         resource, then this is same value as the first element of
         crypto_key_versions.
         
        string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setCryptoKeyVersionBytes

        public ProtectedResource.Builder setCryptoKeyVersionBytes​(com.google.protobuf.ByteString value)
         The name of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key version data
         to Asset Inventory. If there are multiple key versions protecting the
         resource, then this is same value as the first element of
         crypto_key_versions.
         
        string crypto_key_version = 6 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for cryptoKeyVersion to set.
        Returns:
        This builder for chaining.
      • getCryptoKeyVersionsList

        public com.google.protobuf.ProtocolStringList getCryptoKeyVersionsList()
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key versions data
         to Asset Inventory. The first element of this field is stored in
         crypto_key_version.
         
        repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }
        Specified by:
        getCryptoKeyVersionsList in interface ProtectedResourceOrBuilder
        Returns:
        A list containing the cryptoKeyVersions.
      • getCryptoKeyVersionsCount

        public int getCryptoKeyVersionsCount()
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key versions data
         to Asset Inventory. The first element of this field is stored in
         crypto_key_version.
         
        repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }
        Specified by:
        getCryptoKeyVersionsCount in interface ProtectedResourceOrBuilder
        Returns:
        The count of cryptoKeyVersions.
      • getCryptoKeyVersions

        public String getCryptoKeyVersions​(int index)
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key versions data
         to Asset Inventory. The first element of this field is stored in
         crypto_key_version.
         
        repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }
        Specified by:
        getCryptoKeyVersions in interface ProtectedResourceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The cryptoKeyVersions at the given index.
      • getCryptoKeyVersionsBytes

        public com.google.protobuf.ByteString getCryptoKeyVersionsBytes​(int index)
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key versions data
         to Asset Inventory. The first element of this field is stored in
         crypto_key_version.
         
        repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }
        Specified by:
        getCryptoKeyVersionsBytes in interface ProtectedResourceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the cryptoKeyVersions at the given index.
      • setCryptoKeyVersions

        public ProtectedResource.Builder setCryptoKeyVersions​(int index,
                                                              String value)
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key versions data
         to Asset Inventory. The first element of this field is stored in
         crypto_key_version.
         
        repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The cryptoKeyVersions to set.
        Returns:
        This builder for chaining.
      • addCryptoKeyVersions

        public ProtectedResource.Builder addCryptoKeyVersions​(String value)
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key versions data
         to Asset Inventory. The first element of this field is stored in
         crypto_key_version.
         
        repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The cryptoKeyVersions to add.
        Returns:
        This builder for chaining.
      • addAllCryptoKeyVersions

        public ProtectedResource.Builder addAllCryptoKeyVersions​(Iterable<String> values)
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key versions data
         to Asset Inventory. The first element of this field is stored in
         crypto_key_version.
         
        repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }
        Parameters:
        values - The cryptoKeyVersions to add.
        Returns:
        This builder for chaining.
      • clearCryptoKeyVersions

        public ProtectedResource.Builder clearCryptoKeyVersions()
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key versions data
         to Asset Inventory. The first element of this field is stored in
         crypto_key_version.
         
        repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • addCryptoKeyVersionsBytes

        public ProtectedResource.Builder addCryptoKeyVersionsBytes​(com.google.protobuf.ByteString value)
         The names of the Cloud KMS
         [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
         used to protect this resource via CMEK. This field is empty if the
         Google Cloud product owning the resource does not provide key versions data
         to Asset Inventory. The first element of this field is stored in
         crypto_key_version.
         
        repeated string crypto_key_versions = 10 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes of the cryptoKeyVersions to add.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time at which this resource was created. The granularity
         is in seconds. Timestamp.nanos will always be 0.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ProtectedResourceOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time at which this resource was created. The granularity
         is in seconds. Timestamp.nanos will always be 0.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ProtectedResourceOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public ProtectedResource.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this resource was created. The granularity
         is in seconds. Timestamp.nanos will always be 0.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public ProtectedResource.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which this resource was created. The granularity
         is in seconds. Timestamp.nanos will always be 0.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public ProtectedResource.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this resource was created. The granularity
         is in seconds. Timestamp.nanos will always be 0.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public ProtectedResource.Builder clearCreateTime()
         Output only. The time at which this resource was created. The granularity
         is in seconds. Timestamp.nanos will always be 0.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time at which this resource was created. The granularity
         is in seconds. Timestamp.nanos will always be 0.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time at which this resource was created. The granularity
         is in seconds. Timestamp.nanos will always be 0.
         
        .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ProtectedResourceOrBuilder
      • setUnknownFields

        public final ProtectedResource.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<ProtectedResource.Builder>
      • mergeUnknownFields

        public final ProtectedResource.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<ProtectedResource.Builder>