Class HmacKeyMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>
com.google.storage.v2.HmacKeyMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HmacKeyMetadataOrBuilder, Cloneable
Enclosing class:
HmacKeyMetadata

public static final class HmacKeyMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder> implements HmacKeyMetadataOrBuilder
 Hmac Key Metadata, which includes all information other than the secret.
 
Protobuf type google.storage.v2.HmacKeyMetadata
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

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

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

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

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

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

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

      public HmacKeyMetadata.Builder mergeFrom(HmacKeyMetadata other)
    • isInitialized

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

      public HmacKeyMetadata.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<HmacKeyMetadata.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Immutable. Resource name ID of the key in the format
       {projectIdentifier}/{accessId}.
       {projectIdentifier} can be the project ID or project number.
       
      string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getId in interface HmacKeyMetadataOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Immutable. Resource name ID of the key in the format
       {projectIdentifier}/{accessId}.
       {projectIdentifier} can be the project ID or project number.
       
      string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getIdBytes in interface HmacKeyMetadataOrBuilder
      Returns:
      The bytes for id.
    • setId

      public HmacKeyMetadata.Builder setId(String value)
       Immutable. Resource name ID of the key in the format
       {projectIdentifier}/{accessId}.
       {projectIdentifier} can be the project ID or project number.
       
      string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public HmacKeyMetadata.Builder clearId()
       Immutable. Resource name ID of the key in the format
       {projectIdentifier}/{accessId}.
       {projectIdentifier} can be the project ID or project number.
       
      string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setIdBytes

      public HmacKeyMetadata.Builder setIdBytes(com.google.protobuf.ByteString value)
       Immutable. Resource name ID of the key in the format
       {projectIdentifier}/{accessId}.
       {projectIdentifier} can be the project ID or project number.
       
      string id = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getAccessId

      public String getAccessId()
       Immutable. Globally unique id for keys.
       
      string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAccessId in interface HmacKeyMetadataOrBuilder
      Returns:
      The accessId.
    • getAccessIdBytes

      public com.google.protobuf.ByteString getAccessIdBytes()
       Immutable. Globally unique id for keys.
       
      string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAccessIdBytes in interface HmacKeyMetadataOrBuilder
      Returns:
      The bytes for accessId.
    • setAccessId

      public HmacKeyMetadata.Builder setAccessId(String value)
       Immutable. Globally unique id for keys.
       
      string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The accessId to set.
      Returns:
      This builder for chaining.
    • clearAccessId

      public HmacKeyMetadata.Builder clearAccessId()
       Immutable. Globally unique id for keys.
       
      string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setAccessIdBytes

      public HmacKeyMetadata.Builder setAccessIdBytes(com.google.protobuf.ByteString value)
       Immutable. Globally unique id for keys.
       
      string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for accessId to set.
      Returns:
      This builder for chaining.
    • getProject

      public String getProject()
       Immutable. Identifies the project that owns the service account of the
       specified HMAC key, in the format "projects/{projectIdentifier}".
       {projectIdentifier} can be the project ID or project number.
       
      string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getProject in interface HmacKeyMetadataOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Immutable. Identifies the project that owns the service account of the
       specified HMAC key, in the format "projects/{projectIdentifier}".
       {projectIdentifier} can be the project ID or project number.
       
      string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getProjectBytes in interface HmacKeyMetadataOrBuilder
      Returns:
      The bytes for project.
    • setProject

      public HmacKeyMetadata.Builder setProject(String value)
       Immutable. Identifies the project that owns the service account of the
       specified HMAC key, in the format "projects/{projectIdentifier}".
       {projectIdentifier} can be the project ID or project number.
       
      string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

      public HmacKeyMetadata.Builder clearProject()
       Immutable. Identifies the project that owns the service account of the
       specified HMAC key, in the format "projects/{projectIdentifier}".
       {projectIdentifier} can be the project ID or project number.
       
      string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setProjectBytes

      public HmacKeyMetadata.Builder setProjectBytes(com.google.protobuf.ByteString value)
       Immutable. Identifies the project that owns the service account of the
       specified HMAC key, in the format "projects/{projectIdentifier}".
       {projectIdentifier} can be the project ID or project number.
       
      string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • getServiceAccountEmail

      public String getServiceAccountEmail()
       Output only. Email of the service account the key authenticates as.
       
      string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceAccountEmail in interface HmacKeyMetadataOrBuilder
      Returns:
      The serviceAccountEmail.
    • getServiceAccountEmailBytes

      public com.google.protobuf.ByteString getServiceAccountEmailBytes()
       Output only. Email of the service account the key authenticates as.
       
      string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceAccountEmailBytes in interface HmacKeyMetadataOrBuilder
      Returns:
      The bytes for serviceAccountEmail.
    • setServiceAccountEmail

      public HmacKeyMetadata.Builder setServiceAccountEmail(String value)
       Output only. Email of the service account the key authenticates as.
       
      string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The serviceAccountEmail to set.
      Returns:
      This builder for chaining.
    • clearServiceAccountEmail

      public HmacKeyMetadata.Builder clearServiceAccountEmail()
       Output only. Email of the service account the key authenticates as.
       
      string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setServiceAccountEmailBytes

      public HmacKeyMetadata.Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
       Output only. Email of the service account the key authenticates as.
       
      string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for serviceAccountEmail to set.
      Returns:
      This builder for chaining.
    • getState

      public String getState()
       State of the key. One of ACTIVE, INACTIVE, or DELETED.
       Writable, can be updated by UpdateHmacKey operation.
       
      string state = 5;
      Specified by:
      getState in interface HmacKeyMetadataOrBuilder
      Returns:
      The state.
    • getStateBytes

      public com.google.protobuf.ByteString getStateBytes()
       State of the key. One of ACTIVE, INACTIVE, or DELETED.
       Writable, can be updated by UpdateHmacKey operation.
       
      string state = 5;
      Specified by:
      getStateBytes in interface HmacKeyMetadataOrBuilder
      Returns:
      The bytes for state.
    • setState

      public HmacKeyMetadata.Builder setState(String value)
       State of the key. One of ACTIVE, INACTIVE, or DELETED.
       Writable, can be updated by UpdateHmacKey operation.
       
      string state = 5;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public HmacKeyMetadata.Builder clearState()
       State of the key. One of ACTIVE, INACTIVE, or DELETED.
       Writable, can be updated by UpdateHmacKey operation.
       
      string state = 5;
      Returns:
      This builder for chaining.
    • setStateBytes

      public HmacKeyMetadata.Builder setStateBytes(com.google.protobuf.ByteString value)
       State of the key. One of ACTIVE, INACTIVE, or DELETED.
       Writable, can be updated by UpdateHmacKey operation.
       
      string state = 5;
      Parameters:
      value - The bytes for state to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time of the HMAC key.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface HmacKeyMetadataOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time of the HMAC key.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface HmacKeyMetadataOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public HmacKeyMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time of the HMAC key.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public HmacKeyMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The creation time of the HMAC key.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public HmacKeyMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time of the HMAC key.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public HmacKeyMetadata.Builder clearCreateTime()
       Output only. The creation time of the HMAC key.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The creation time of the HMAC key.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time of the HMAC key.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface HmacKeyMetadataOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last modification time of the HMAC key metadata.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface HmacKeyMetadataOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The last modification time of the HMAC key metadata.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface HmacKeyMetadataOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public HmacKeyMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last modification time of the HMAC key metadata.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public HmacKeyMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The last modification time of the HMAC key metadata.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public HmacKeyMetadata.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last modification time of the HMAC key metadata.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public HmacKeyMetadata.Builder clearUpdateTime()
       Output only. The last modification time of the HMAC key metadata.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The last modification time of the HMAC key metadata.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last modification time of the HMAC key metadata.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface HmacKeyMetadataOrBuilder
    • getEtag

      public String getEtag()
       The etag of the HMAC key.
       
      string etag = 8;
      Specified by:
      getEtag in interface HmacKeyMetadataOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       The etag of the HMAC key.
       
      string etag = 8;
      Specified by:
      getEtagBytes in interface HmacKeyMetadataOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public HmacKeyMetadata.Builder setEtag(String value)
       The etag of the HMAC key.
       
      string etag = 8;
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public HmacKeyMetadata.Builder clearEtag()
       The etag of the HMAC key.
       
      string etag = 8;
      Returns:
      This builder for chaining.
    • setEtagBytes

      public HmacKeyMetadata.Builder setEtagBytes(com.google.protobuf.ByteString value)
       The etag of the HMAC key.
       
      string etag = 8;
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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