Class UpdateAnywhereCacheRequest.Builder

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

public static final class UpdateAnywhereCacheRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateAnywhereCacheRequest.Builder> implements UpdateAnywhereCacheRequestOrBuilder
 Request message for UpdateAnywhereCache.
 
Protobuf type google.storage.control.v2.UpdateAnywhereCacheRequest
  • 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<UpdateAnywhereCacheRequest.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<UpdateAnywhereCacheRequest.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<UpdateAnywhereCacheRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

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

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

      public UpdateAnywhereCacheRequest.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<UpdateAnywhereCacheRequest.Builder>
      Throws:
      IOException
    • hasAnywhereCache

      public boolean hasAnywhereCache()
       Required. The Anywhere Cache instance to be updated.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAnywhereCache in interface UpdateAnywhereCacheRequestOrBuilder
      Returns:
      Whether the anywhereCache field is set.
    • getAnywhereCache

      public AnywhereCache getAnywhereCache()
       Required. The Anywhere Cache instance to be updated.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnywhereCache in interface UpdateAnywhereCacheRequestOrBuilder
      Returns:
      The anywhereCache.
    • setAnywhereCache

      public UpdateAnywhereCacheRequest.Builder setAnywhereCache(AnywhereCache value)
       Required. The Anywhere Cache instance to be updated.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED];
    • setAnywhereCache

      public UpdateAnywhereCacheRequest.Builder setAnywhereCache(AnywhereCache.Builder builderForValue)
       Required. The Anywhere Cache instance to be updated.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeAnywhereCache

      public UpdateAnywhereCacheRequest.Builder mergeAnywhereCache(AnywhereCache value)
       Required. The Anywhere Cache instance to be updated.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearAnywhereCache

      public UpdateAnywhereCacheRequest.Builder clearAnywhereCache()
       Required. The Anywhere Cache instance to be updated.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAnywhereCacheBuilder

      public AnywhereCache.Builder getAnywhereCacheBuilder()
       Required. The Anywhere Cache instance to be updated.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAnywhereCacheOrBuilder

      public AnywhereCacheOrBuilder getAnywhereCacheOrBuilder()
       Required. The Anywhere Cache instance to be updated.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnywhereCacheOrBuilder in interface UpdateAnywhereCacheRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Required. List of fields to be updated. Mutable fields of AnywhereCache
       include `ttl` and `admission_policy`.
      
       To specify ALL fields, specify a single field with the value `*`. Note: We
       recommend against doing this. If a new field is introduced at a later time,
       an older client updating with the `*` may accidentally reset the new
       field's value.
      
       Not specifying any fields is an error.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasUpdateMask in interface UpdateAnywhereCacheRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Required. List of fields to be updated. Mutable fields of AnywhereCache
       include `ttl` and `admission_policy`.
      
       To specify ALL fields, specify a single field with the value `*`. Note: We
       recommend against doing this. If a new field is introduced at a later time,
       an older client updating with the `*` may accidentally reset the new
       field's value.
      
       Not specifying any fields is an error.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpdateMask in interface UpdateAnywhereCacheRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateAnywhereCacheRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Required. List of fields to be updated. Mutable fields of AnywhereCache
       include `ttl` and `admission_policy`.
      
       To specify ALL fields, specify a single field with the value `*`. Note: We
       recommend against doing this. If a new field is introduced at a later time,
       an older client updating with the `*` may accidentally reset the new
       field's value.
      
       Not specifying any fields is an error.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • setUpdateMask

      public UpdateAnywhereCacheRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Required. List of fields to be updated. Mutable fields of AnywhereCache
       include `ttl` and `admission_policy`.
      
       To specify ALL fields, specify a single field with the value `*`. Note: We
       recommend against doing this. If a new field is introduced at a later time,
       an older client updating with the `*` may accidentally reset the new
       field's value.
      
       Not specifying any fields is an error.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeUpdateMask

      public UpdateAnywhereCacheRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Required. List of fields to be updated. Mutable fields of AnywhereCache
       include `ttl` and `admission_policy`.
      
       To specify ALL fields, specify a single field with the value `*`. Note: We
       recommend against doing this. If a new field is introduced at a later time,
       an older client updating with the `*` may accidentally reset the new
       field's value.
      
       Not specifying any fields is an error.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearUpdateMask

      public UpdateAnywhereCacheRequest.Builder clearUpdateMask()
       Required. List of fields to be updated. Mutable fields of AnywhereCache
       include `ttl` and `admission_policy`.
      
       To specify ALL fields, specify a single field with the value `*`. Note: We
       recommend against doing this. If a new field is introduced at a later time,
       an older client updating with the `*` may accidentally reset the new
       field's value.
      
       Not specifying any fields is an error.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Required. List of fields to be updated. Mutable fields of AnywhereCache
       include `ttl` and `admission_policy`.
      
       To specify ALL fields, specify a single field with the value `*`. Note: We
       recommend against doing this. If a new field is introduced at a later time,
       an older client updating with the `*` may accidentally reset the new
       field's value.
      
       Not specifying any fields is an error.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Required. List of fields to be updated. Mutable fields of AnywhereCache
       include `ttl` and `admission_policy`.
      
       To specify ALL fields, specify a single field with the value `*`. Note: We
       recommend against doing this. If a new field is introduced at a later time,
       an older client updating with the `*` may accidentally reset the new
       field's value.
      
       Not specifying any fields is an error.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateAnywhereCacheRequestOrBuilder
    • getRequestId

      public String getRequestId()
       Optional. A unique identifier for this request. UUID is the recommended
       format, but other formats are still accepted. This request is only
       idempotent if a `request_id` is provided.
       
      string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Specified by:
      getRequestId in interface UpdateAnywhereCacheRequestOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       Optional. A unique identifier for this request. UUID is the recommended
       format, but other formats are still accepted. This request is only
       idempotent if a `request_id` is provided.
       
      string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Specified by:
      getRequestIdBytes in interface UpdateAnywhereCacheRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public UpdateAnywhereCacheRequest.Builder setRequestId(String value)
       Optional. A unique identifier for this request. UUID is the recommended
       format, but other formats are still accepted. This request is only
       idempotent if a `request_id` is provided.
       
      string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public UpdateAnywhereCacheRequest.Builder clearRequestId()
       Optional. A unique identifier for this request. UUID is the recommended
       format, but other formats are still accepted. This request is only
       idempotent if a `request_id` is provided.
       
      string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public UpdateAnywhereCacheRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       Optional. A unique identifier for this request. UUID is the recommended
       format, but other formats are still accepted. This request is only
       idempotent if a `request_id` is provided.
       
      string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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