Class CreateAnywhereCacheRequest.Builder

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

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

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

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

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

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

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

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

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

      public CreateAnywhereCacheRequest.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<CreateAnywhereCacheRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The bucket to which this cache belongs.
       Format: `projects/{project}/buckets/{bucket}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateAnywhereCacheRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The bucket to which this cache belongs.
       Format: `projects/{project}/buckets/{bucket}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateAnywhereCacheRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateAnywhereCacheRequest.Builder setParent(String value)
       Required. The bucket to which this cache belongs.
       Format: `projects/{project}/buckets/{bucket}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateAnywhereCacheRequest.Builder clearParent()
       Required. The bucket to which this cache belongs.
       Format: `projects/{project}/buckets/{bucket}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateAnywhereCacheRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The bucket to which this cache belongs.
       Format: `projects/{project}/buckets/{bucket}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasAnywhereCache

      public boolean hasAnywhereCache()
       Required. Properties of the Anywhere Cache instance being created.
       The parent bucket name is specified in the `parent` field. Server uses the
       default value of `ttl` or `admission_policy` if not specified in
       request.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAnywhereCache in interface CreateAnywhereCacheRequestOrBuilder
      Returns:
      Whether the anywhereCache field is set.
    • getAnywhereCache

      public AnywhereCache getAnywhereCache()
       Required. Properties of the Anywhere Cache instance being created.
       The parent bucket name is specified in the `parent` field. Server uses the
       default value of `ttl` or `admission_policy` if not specified in
       request.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnywhereCache in interface CreateAnywhereCacheRequestOrBuilder
      Returns:
      The anywhereCache.
    • setAnywhereCache

      public CreateAnywhereCacheRequest.Builder setAnywhereCache(AnywhereCache value)
       Required. Properties of the Anywhere Cache instance being created.
       The parent bucket name is specified in the `parent` field. Server uses the
       default value of `ttl` or `admission_policy` if not specified in
       request.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED];
    • setAnywhereCache

      public CreateAnywhereCacheRequest.Builder setAnywhereCache(AnywhereCache.Builder builderForValue)
       Required. Properties of the Anywhere Cache instance being created.
       The parent bucket name is specified in the `parent` field. Server uses the
       default value of `ttl` or `admission_policy` if not specified in
       request.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeAnywhereCache

      public CreateAnywhereCacheRequest.Builder mergeAnywhereCache(AnywhereCache value)
       Required. Properties of the Anywhere Cache instance being created.
       The parent bucket name is specified in the `parent` field. Server uses the
       default value of `ttl` or `admission_policy` if not specified in
       request.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearAnywhereCache

      public CreateAnywhereCacheRequest.Builder clearAnywhereCache()
       Required. Properties of the Anywhere Cache instance being created.
       The parent bucket name is specified in the `parent` field. Server uses the
       default value of `ttl` or `admission_policy` if not specified in
       request.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAnywhereCacheBuilder

      public AnywhereCache.Builder getAnywhereCacheBuilder()
       Required. Properties of the Anywhere Cache instance being created.
       The parent bucket name is specified in the `parent` field. Server uses the
       default value of `ttl` or `admission_policy` if not specified in
       request.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAnywhereCacheOrBuilder

      public AnywhereCacheOrBuilder getAnywhereCacheOrBuilder()
       Required. Properties of the Anywhere Cache instance being created.
       The parent bucket name is specified in the `parent` field. Server uses the
       default value of `ttl` or `admission_policy` if not specified in
       request.
       
      .google.storage.control.v2.AnywhereCache anywhere_cache = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnywhereCacheOrBuilder in interface CreateAnywhereCacheRequestOrBuilder
    • 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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Specified by:
      getRequestId in interface CreateAnywhereCacheRequestOrBuilder
      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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Specified by:
      getRequestIdBytes in interface CreateAnywhereCacheRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public CreateAnywhereCacheRequest.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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public CreateAnywhereCacheRequest.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 = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public CreateAnywhereCacheRequest.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 = 4 [(.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 CreateAnywhereCacheRequest.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<CreateAnywhereCacheRequest.Builder>
    • mergeUnknownFields

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