Class UpdateKeyRequest.Builder

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

public static final class UpdateKeyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateKeyRequest.Builder> implements UpdateKeyRequestOrBuilder
 Request message for `UpdateKey` method.
 
Protobuf type google.api.apikeys.v2.UpdateKeyRequest
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Required.
    The field mask specifies which fields to be updated as part of this request.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Required.
    Required.
    Required.
    com.google.protobuf.FieldMask
    The field mask specifies which fields to be updated as part of this request.
    com.google.protobuf.FieldMask.Builder
    The field mask specifies which fields to be updated as part of this request.
    com.google.protobuf.FieldMaskOrBuilder
    The field mask specifies which fields to be updated as part of this request.
    boolean
    Required.
    boolean
    The field mask specifies which fields to be updated as part of this request.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeKey(Key value)
    Required.
    mergeUpdateMask(com.google.protobuf.FieldMask value)
    The field mask specifies which fields to be updated as part of this request.
    setKey(Key value)
    Required.
    setKey(Key.Builder builderForValue)
    Required.
    setUpdateMask(com.google.protobuf.FieldMask value)
    The field mask specifies which fields to be updated as part of this request.
    setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
    The field mask specifies which fields to be updated as part of this request.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

      public UpdateKeyRequest.Builder mergeFrom(UpdateKeyRequest other)
    • isInitialized

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

      public UpdateKeyRequest.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<UpdateKeyRequest.Builder>
      Throws:
      IOException
    • hasKey

      public boolean hasKey()
       Required. Set the `name` field to the resource name of the API key to be
       updated. You can update only the `display_name`, `restrictions`, and
       `annotations` fields.
       
      .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasKey in interface UpdateKeyRequestOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public Key getKey()
       Required. Set the `name` field to the resource name of the API key to be
       updated. You can update only the `display_name`, `restrictions`, and
       `annotations` fields.
       
      .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKey in interface UpdateKeyRequestOrBuilder
      Returns:
      The key.
    • setKey

      public UpdateKeyRequest.Builder setKey(Key value)
       Required. Set the `name` field to the resource name of the API key to be
       updated. You can update only the `display_name`, `restrictions`, and
       `annotations` fields.
       
      .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
    • setKey

      public UpdateKeyRequest.Builder setKey(Key.Builder builderForValue)
       Required. Set the `name` field to the resource name of the API key to be
       updated. You can update only the `display_name`, `restrictions`, and
       `annotations` fields.
       
      .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeKey

      public UpdateKeyRequest.Builder mergeKey(Key value)
       Required. Set the `name` field to the resource name of the API key to be
       updated. You can update only the `display_name`, `restrictions`, and
       `annotations` fields.
       
      .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearKey

      public UpdateKeyRequest.Builder clearKey()
       Required. Set the `name` field to the resource name of the API key to be
       updated. You can update only the `display_name`, `restrictions`, and
       `annotations` fields.
       
      .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
    • getKeyBuilder

      public Key.Builder getKeyBuilder()
       Required. Set the `name` field to the resource name of the API key to be
       updated. You can update only the `display_name`, `restrictions`, and
       `annotations` fields.
       
      .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
    • getKeyOrBuilder

      public KeyOrBuilder getKeyOrBuilder()
       Required. Set the `name` field to the resource name of the API key to be
       updated. You can update only the `display_name`, `restrictions`, and
       `annotations` fields.
       
      .google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyOrBuilder in interface UpdateKeyRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       The field mask specifies which fields to be updated as part of this
       request. All other fields are ignored.
       Mutable fields are: `display_name`, `restrictions`, and `annotations`.
       If an update mask is not provided, the service treats it as an implied mask
       equivalent to all allowed fields that are set on the wire. If the field
       mask has a special value "*", the service treats it equivalent to replace
       all allowed mutable fields.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      hasUpdateMask in interface UpdateKeyRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       The field mask specifies which fields to be updated as part of this
       request. All other fields are ignored.
       Mutable fields are: `display_name`, `restrictions`, and `annotations`.
       If an update mask is not provided, the service treats it as an implied mask
       equivalent to all allowed fields that are set on the wire. If the field
       mask has a special value "*", the service treats it equivalent to replace
       all allowed mutable fields.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMask in interface UpdateKeyRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateKeyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       The field mask specifies which fields to be updated as part of this
       request. All other fields are ignored.
       Mutable fields are: `display_name`, `restrictions`, and `annotations`.
       If an update mask is not provided, the service treats it as an implied mask
       equivalent to all allowed fields that are set on the wire. If the field
       mask has a special value "*", the service treats it equivalent to replace
       all allowed mutable fields.
       
      .google.protobuf.FieldMask update_mask = 2;
    • setUpdateMask

      public UpdateKeyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       The field mask specifies which fields to be updated as part of this
       request. All other fields are ignored.
       Mutable fields are: `display_name`, `restrictions`, and `annotations`.
       If an update mask is not provided, the service treats it as an implied mask
       equivalent to all allowed fields that are set on the wire. If the field
       mask has a special value "*", the service treats it equivalent to replace
       all allowed mutable fields.
       
      .google.protobuf.FieldMask update_mask = 2;
    • mergeUpdateMask

      public UpdateKeyRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       The field mask specifies which fields to be updated as part of this
       request. All other fields are ignored.
       Mutable fields are: `display_name`, `restrictions`, and `annotations`.
       If an update mask is not provided, the service treats it as an implied mask
       equivalent to all allowed fields that are set on the wire. If the field
       mask has a special value "*", the service treats it equivalent to replace
       all allowed mutable fields.
       
      .google.protobuf.FieldMask update_mask = 2;
    • clearUpdateMask

      public UpdateKeyRequest.Builder clearUpdateMask()
       The field mask specifies which fields to be updated as part of this
       request. All other fields are ignored.
       Mutable fields are: `display_name`, `restrictions`, and `annotations`.
       If an update mask is not provided, the service treats it as an implied mask
       equivalent to all allowed fields that are set on the wire. If the field
       mask has a special value "*", the service treats it equivalent to replace
       all allowed mutable fields.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       The field mask specifies which fields to be updated as part of this
       request. All other fields are ignored.
       Mutable fields are: `display_name`, `restrictions`, and `annotations`.
       If an update mask is not provided, the service treats it as an implied mask
       equivalent to all allowed fields that are set on the wire. If the field
       mask has a special value "*", the service treats it equivalent to replace
       all allowed mutable fields.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       The field mask specifies which fields to be updated as part of this
       request. All other fields are ignored.
       Mutable fields are: `display_name`, `restrictions`, and `annotations`.
       If an update mask is not provided, the service treats it as an implied mask
       equivalent to all allowed fields that are set on the wire. If the field
       mask has a special value "*", the service treats it equivalent to replace
       all allowed mutable fields.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateKeyRequestOrBuilder