Class ProtectedResource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
com.google.cloud.kms.inventory.v1.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.GeneratedMessage.Builder<ProtectedResource.Builder> implements ProtectedResourceOrBuilder
 Metadata about a resource protected by a Cloud KMS key.
 
Protobuf type google.cloud.kms.inventory.v1.ProtectedResource
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ProtectedResource.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public ProtectedResource.Builder mergeFrom(ProtectedResource other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.
    • getProject

      public String getProject()
       Format: `projects/{PROJECT_NUMBER}`.
       
      string project = 2;
      Specified by:
      getProject in interface ProtectedResourceOrBuilder
      Returns:
      The project.
    • 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.
    • getProjectId

      public String getProjectId()
       The ID of the project that owns the resource.
       
      string project_id = 9;
      Specified by:
      getProjectId in interface ProtectedResourceOrBuilder
      Returns:
      The projectId.
    • 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.
    • getResourceType

      public String getResourceType()
       Example: `compute.googleapis.com/Disk`
       
      string resource_type = 3;
      Specified by:
      getResourceType in interface ProtectedResourceOrBuilder
      Returns:
      The resourceType.
    • 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.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ProtectedResourceOrBuilder
       A key-value pair of the resource's labels (v1) to their values.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsCount in interface ProtectedResourceOrBuilder
    • 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
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ProtectedResourceOrBuilder
    • getLabelsMap

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

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

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

      public ProtectedResource.Builder clearLabels()
    • 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.
    • putLabels

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

      public ProtectedResource.Builder putAllLabels(Map<String,String> values)
       A key-value pair of the resource's labels (v1) to their values.
       
      map<string, string> labels = 5;
    • 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