Class Key.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Key.Builder>
com.google.api.apikeys.v2.Key.Builder
All Implemented Interfaces:
KeyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Key

public static final class Key.Builder extends com.google.protobuf.GeneratedMessage.Builder<Key.Builder> implements KeyOrBuilder
 The representation of a key managed by the API Keys API.
 
Protobuf type google.api.apikeys.v2.Key
  • 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<Key.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public Key.Builder mergeFrom(Key other)
    • isInitialized

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

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

      public String getName()
       Output only. The resource name of the key.
       The `name` has the form:
       `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`.
       For example:
       `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2`
      
       NOTE: Key is a global resource; hence the only supported value for
       location is `global`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface KeyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of the key.
       The `name` has the form:
       `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`.
       For example:
       `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2`
      
       NOTE: Key is a global resource; hence the only supported value for
       location is `global`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface KeyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Key.Builder setName(String value)
       Output only. The resource name of the key.
       The `name` has the form:
       `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`.
       For example:
       `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2`
      
       NOTE: Key is a global resource; hence the only supported value for
       location is `global`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Key.Builder clearName()
       Output only. The resource name of the key.
       The `name` has the form:
       `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`.
       For example:
       `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2`
      
       NOTE: Key is a global resource; hence the only supported value for
       location is `global`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Key.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name of the key.
       The `name` has the form:
       `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`.
       For example:
       `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2`
      
       NOTE: Key is a global resource; hence the only supported value for
       location is `global`.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. Unique id in UUID4 format.
       
      string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface KeyOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Unique id in UUID4 format.
       
      string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface KeyOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Key.Builder setUid(String value)
       Output only. Unique id in UUID4 format.
       
      string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Key.Builder clearUid()
       Output only. Unique id in UUID4 format.
       
      string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUidBytes

      public Key.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Unique id in UUID4 format.
       
      string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Human-readable display name of this key that you can modify.
       The maximum length is 63 characters.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface KeyOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Human-readable display name of this key that you can modify.
       The maximum length is 63 characters.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface KeyOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Key.Builder setDisplayName(String value)
       Human-readable display name of this key that you can modify.
       The maximum length is 63 characters.
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Key.Builder clearDisplayName()
       Human-readable display name of this key that you can modify.
       The maximum length is 63 characters.
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Key.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Human-readable display name of this key that you can modify.
       The maximum length is 63 characters.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getKeyString

      public String getKeyString()
       Output only. An encrypted and signed value held by this key.
       This field can be accessed only through the `GetKeyString` method.
       
      string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKeyString in interface KeyOrBuilder
      Returns:
      The keyString.
    • getKeyStringBytes

      public com.google.protobuf.ByteString getKeyStringBytes()
       Output only. An encrypted and signed value held by this key.
       This field can be accessed only through the `GetKeyString` method.
       
      string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKeyStringBytes in interface KeyOrBuilder
      Returns:
      The bytes for keyString.
    • setKeyString

      public Key.Builder setKeyString(String value)
       Output only. An encrypted and signed value held by this key.
       This field can be accessed only through the `GetKeyString` method.
       
      string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The keyString to set.
      Returns:
      This builder for chaining.
    • clearKeyString

      public Key.Builder clearKeyString()
       Output only. An encrypted and signed value held by this key.
       This field can be accessed only through the `GetKeyString` method.
       
      string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setKeyStringBytes

      public Key.Builder setKeyStringBytes(com.google.protobuf.ByteString value)
       Output only. An encrypted and signed value held by this key.
       This field can be accessed only through the `GetKeyString` method.
       
      string key_string = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for keyString to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. A timestamp identifying the time this key was originally
       created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface KeyOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. A timestamp identifying the time this key was originally
       created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface KeyOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Key.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. A timestamp identifying the time this key was originally
       created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Key.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. A timestamp identifying the time this key was originally
       created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Key.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. A timestamp identifying the time this key was originally
       created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Key.Builder clearCreateTime()
       Output only. A timestamp identifying the time this key was originally
       created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. A timestamp identifying the time this key was originally
       created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. A timestamp identifying the time this key was originally
       created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface KeyOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. A timestamp identifying the time this key was last
       updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface KeyOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. A timestamp identifying the time this key was last
       updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface KeyOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Key.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. A timestamp identifying the time this key was last
       updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Key.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. A timestamp identifying the time this key was last
       updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Key.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. A timestamp identifying the time this key was last
       updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Key.Builder clearUpdateTime()
       Output only. A timestamp identifying the time this key was last
       updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. A timestamp identifying the time this key was last
       updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. A timestamp identifying the time this key was last
       updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface KeyOrBuilder
    • hasDeleteTime

      public boolean hasDeleteTime()
       Output only. A timestamp when this key was deleted. If the resource is not
       deleted, this must be empty.
       
      .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDeleteTime in interface KeyOrBuilder
      Returns:
      Whether the deleteTime field is set.
    • getDeleteTime

      public com.google.protobuf.Timestamp getDeleteTime()
       Output only. A timestamp when this key was deleted. If the resource is not
       deleted, this must be empty.
       
      .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTime in interface KeyOrBuilder
      Returns:
      The deleteTime.
    • setDeleteTime

      public Key.Builder setDeleteTime(com.google.protobuf.Timestamp value)
       Output only. A timestamp when this key was deleted. If the resource is not
       deleted, this must be empty.
       
      .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDeleteTime

      public Key.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. A timestamp when this key was deleted. If the resource is not
       deleted, this must be empty.
       
      .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDeleteTime

      public Key.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
       Output only. A timestamp when this key was deleted. If the resource is not
       deleted, this must be empty.
       
      .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDeleteTime

      public Key.Builder clearDeleteTime()
       Output only. A timestamp when this key was deleted. If the resource is not
       deleted, this must be empty.
       
      .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
       Output only. A timestamp when this key was deleted. If the resource is not
       deleted, this must be empty.
       
      .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
       Output only. A timestamp when this key was deleted. If the resource is not
       deleted, this must be empty.
       
      .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTimeOrBuilder in interface KeyOrBuilder
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: KeyOrBuilder
       Annotations is an unstructured key-value map stored with a policy that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
       
      map<string, string> annotations = 8;
      Specified by:
      getAnnotationsCount in interface KeyOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Annotations is an unstructured key-value map stored with a policy that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
       
      map<string, string> annotations = 8;
      Specified by:
      containsAnnotations in interface KeyOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface KeyOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Annotations is an unstructured key-value map stored with a policy that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
       
      map<string, string> annotations = 8;
      Specified by:
      getAnnotationsMap in interface KeyOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Annotations is an unstructured key-value map stored with a policy that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
       
      map<string, string> annotations = 8;
      Specified by:
      getAnnotationsOrDefault in interface KeyOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Annotations is an unstructured key-value map stored with a policy that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
       
      map<string, string> annotations = 8;
      Specified by:
      getAnnotationsOrThrow in interface KeyOrBuilder
    • clearAnnotations

      public Key.Builder clearAnnotations()
    • removeAnnotations

      public Key.Builder removeAnnotations(String key)
       Annotations is an unstructured key-value map stored with a policy that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
       
      map<string, string> annotations = 8;
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotations

      public Key.Builder putAnnotations(String key, String value)
       Annotations is an unstructured key-value map stored with a policy that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
       
      map<string, string> annotations = 8;
    • putAllAnnotations

      public Key.Builder putAllAnnotations(Map<String,String> values)
       Annotations is an unstructured key-value map stored with a policy that
       may be set by external tools to store and retrieve arbitrary metadata.
       They are not queryable and should be preserved when modifying objects.
       
      map<string, string> annotations = 8;
    • hasRestrictions

      public boolean hasRestrictions()
       Key restrictions.
       
      .google.api.apikeys.v2.Restrictions restrictions = 9;
      Specified by:
      hasRestrictions in interface KeyOrBuilder
      Returns:
      Whether the restrictions field is set.
    • getRestrictions

      public Restrictions getRestrictions()
       Key restrictions.
       
      .google.api.apikeys.v2.Restrictions restrictions = 9;
      Specified by:
      getRestrictions in interface KeyOrBuilder
      Returns:
      The restrictions.
    • setRestrictions

      public Key.Builder setRestrictions(Restrictions value)
       Key restrictions.
       
      .google.api.apikeys.v2.Restrictions restrictions = 9;
    • setRestrictions

      public Key.Builder setRestrictions(Restrictions.Builder builderForValue)
       Key restrictions.
       
      .google.api.apikeys.v2.Restrictions restrictions = 9;
    • mergeRestrictions

      public Key.Builder mergeRestrictions(Restrictions value)
       Key restrictions.
       
      .google.api.apikeys.v2.Restrictions restrictions = 9;
    • clearRestrictions

      public Key.Builder clearRestrictions()
       Key restrictions.
       
      .google.api.apikeys.v2.Restrictions restrictions = 9;
    • getRestrictionsBuilder

      public Restrictions.Builder getRestrictionsBuilder()
       Key restrictions.
       
      .google.api.apikeys.v2.Restrictions restrictions = 9;
    • getRestrictionsOrBuilder

      public RestrictionsOrBuilder getRestrictionsOrBuilder()
       Key restrictions.
       
      .google.api.apikeys.v2.Restrictions restrictions = 9;
      Specified by:
      getRestrictionsOrBuilder in interface KeyOrBuilder
    • getEtag

      public String getEtag()
       Output only. A checksum computed by the server based on the current value
       of the Key resource. This may be sent on update and delete requests to
       ensure the client has an up-to-date value before proceeding. See
       https://google.aip.dev/154.
       
      string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtag in interface KeyOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Output only. A checksum computed by the server based on the current value
       of the Key resource. This may be sent on update and delete requests to
       ensure the client has an up-to-date value before proceeding. See
       https://google.aip.dev/154.
       
      string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtagBytes in interface KeyOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public Key.Builder setEtag(String value)
       Output only. A checksum computed by the server based on the current value
       of the Key resource. This may be sent on update and delete requests to
       ensure the client has an up-to-date value before proceeding. See
       https://google.aip.dev/154.
       
      string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public Key.Builder clearEtag()
       Output only. A checksum computed by the server based on the current value
       of the Key resource. This may be sent on update and delete requests to
       ensure the client has an up-to-date value before proceeding. See
       https://google.aip.dev/154.
       
      string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public Key.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Output only. A checksum computed by the server based on the current value
       of the Key resource. This may be sent on update and delete requests to
       ensure the client has an up-to-date value before proceeding. See
       https://google.aip.dev/154.
       
      string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.