Class UpdateHmacKeyRequest.Builder

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

public static final class UpdateHmacKeyRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder> implements UpdateHmacKeyRequestOrBuilder
 Request object to update an HMAC key state.
 HmacKeyMetadata.state is required and the only writable field in
 UpdateHmacKey operation. Specifying fields other than state will result in an
 error.
 
Protobuf type google.storage.v2.UpdateHmacKeyRequest
  • 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<UpdateHmacKeyRequest.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<UpdateHmacKeyRequest.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<UpdateHmacKeyRequest.Builder>
    • getDefaultInstanceForType

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

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

      public UpdateHmacKeyRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<UpdateHmacKeyRequest.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public UpdateHmacKeyRequest.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<UpdateHmacKeyRequest.Builder>
      Throws:
      IOException
    • hasHmacKey

      public boolean hasHmacKey()
       Required. The HMAC key to update.
       If present, the hmac_key's `id` field will be used to identify the key.
       Otherwise, the hmac_key's access_id and project fields will be used to
       identify the key.
       
      .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasHmacKey in interface UpdateHmacKeyRequestOrBuilder
      Returns:
      Whether the hmacKey field is set.
    • getHmacKey

      public HmacKeyMetadata getHmacKey()
       Required. The HMAC key to update.
       If present, the hmac_key's `id` field will be used to identify the key.
       Otherwise, the hmac_key's access_id and project fields will be used to
       identify the key.
       
      .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHmacKey in interface UpdateHmacKeyRequestOrBuilder
      Returns:
      The hmacKey.
    • setHmacKey

      public UpdateHmacKeyRequest.Builder setHmacKey(HmacKeyMetadata value)
       Required. The HMAC key to update.
       If present, the hmac_key's `id` field will be used to identify the key.
       Otherwise, the hmac_key's access_id and project fields will be used to
       identify the key.
       
      .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
    • setHmacKey

      public UpdateHmacKeyRequest.Builder setHmacKey(HmacKeyMetadata.Builder builderForValue)
       Required. The HMAC key to update.
       If present, the hmac_key's `id` field will be used to identify the key.
       Otherwise, the hmac_key's access_id and project fields will be used to
       identify the key.
       
      .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeHmacKey

      public UpdateHmacKeyRequest.Builder mergeHmacKey(HmacKeyMetadata value)
       Required. The HMAC key to update.
       If present, the hmac_key's `id` field will be used to identify the key.
       Otherwise, the hmac_key's access_id and project fields will be used to
       identify the key.
       
      .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearHmacKey

      public UpdateHmacKeyRequest.Builder clearHmacKey()
       Required. The HMAC key to update.
       If present, the hmac_key's `id` field will be used to identify the key.
       Otherwise, the hmac_key's access_id and project fields will be used to
       identify the key.
       
      .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
    • getHmacKeyBuilder

      public HmacKeyMetadata.Builder getHmacKeyBuilder()
       Required. The HMAC key to update.
       If present, the hmac_key's `id` field will be used to identify the key.
       Otherwise, the hmac_key's access_id and project fields will be used to
       identify the key.
       
      .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
    • getHmacKeyOrBuilder

      public HmacKeyMetadataOrBuilder getHmacKeyOrBuilder()
       Required. The HMAC key to update.
       If present, the hmac_key's `id` field will be used to identify the key.
       Otherwise, the hmac_key's access_id and project fields will be used to
       identify the key.
       
      .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHmacKeyOrBuilder in interface UpdateHmacKeyRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Update mask for hmac_key.
       Not specifying any fields will mean only the `state` field is updated to
       the value specified in `hmac_key`.
       
      .google.protobuf.FieldMask update_mask = 3;
      Specified by:
      hasUpdateMask in interface UpdateHmacKeyRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Update mask for hmac_key.
       Not specifying any fields will mean only the `state` field is updated to
       the value specified in `hmac_key`.
       
      .google.protobuf.FieldMask update_mask = 3;
      Specified by:
      getUpdateMask in interface UpdateHmacKeyRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateHmacKeyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Update mask for hmac_key.
       Not specifying any fields will mean only the `state` field is updated to
       the value specified in `hmac_key`.
       
      .google.protobuf.FieldMask update_mask = 3;
    • setUpdateMask

      public UpdateHmacKeyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Update mask for hmac_key.
       Not specifying any fields will mean only the `state` field is updated to
       the value specified in `hmac_key`.
       
      .google.protobuf.FieldMask update_mask = 3;
    • mergeUpdateMask

      public UpdateHmacKeyRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Update mask for hmac_key.
       Not specifying any fields will mean only the `state` field is updated to
       the value specified in `hmac_key`.
       
      .google.protobuf.FieldMask update_mask = 3;
    • clearUpdateMask

      public UpdateHmacKeyRequest.Builder clearUpdateMask()
       Update mask for hmac_key.
       Not specifying any fields will mean only the `state` field is updated to
       the value specified in `hmac_key`.
       
      .google.protobuf.FieldMask update_mask = 3;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Update mask for hmac_key.
       Not specifying any fields will mean only the `state` field is updated to
       the value specified in `hmac_key`.
       
      .google.protobuf.FieldMask update_mask = 3;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Update mask for hmac_key.
       Not specifying any fields will mean only the `state` field is updated to
       the value specified in `hmac_key`.
       
      .google.protobuf.FieldMask update_mask = 3;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateHmacKeyRequestOrBuilder
    • setUnknownFields

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

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