Class FetchCacheUpdateRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FetchCacheUpdateRequest.Builder>
com.google.spanner.v1.FetchCacheUpdateRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FetchCacheUpdateRequestOrBuilder, Cloneable
Enclosing class:
FetchCacheUpdateRequest

public static final class FetchCacheUpdateRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<FetchCacheUpdateRequest.Builder> implements FetchCacheUpdateRequestOrBuilder
 The request for
 [FetchCacheUpdate][google.spanner.v1.Spanner.FetchCacheUpdate].
 
Protobuf type google.spanner.v1.FetchCacheUpdateRequest
  • 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<FetchCacheUpdateRequest.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<FetchCacheUpdateRequest.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<FetchCacheUpdateRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public FetchCacheUpdateRequest.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<FetchCacheUpdateRequest.Builder>
      Throws:
      IOException
    • getDatabase

      public String getDatabase()
       Required. The database for which to retrieve the cache update.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDatabase in interface FetchCacheUpdateRequestOrBuilder
      Returns:
      The database.
    • getDatabaseBytes

      public com.google.protobuf.ByteString getDatabaseBytes()
       Required. The database for which to retrieve the cache update.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDatabaseBytes in interface FetchCacheUpdateRequestOrBuilder
      Returns:
      The bytes for database.
    • setDatabase

      public FetchCacheUpdateRequest.Builder setDatabase(String value)
       Required. The database for which to retrieve the cache update.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The database to set.
      Returns:
      This builder for chaining.
    • clearDatabase

      public FetchCacheUpdateRequest.Builder clearDatabase()
       Required. The database for which to retrieve the cache update.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDatabaseBytes

      public FetchCacheUpdateRequest.Builder setDatabaseBytes(com.google.protobuf.ByteString value)
       Required. The database for which to retrieve the cache update.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for database to set.
      Returns:
      This builder for chaining.
    • getMaxRecipeCount

      public int getMaxRecipeCount()
       Optional. The maximum number of key recipes to return in the response.
       If not set, a default limit of 100 will be used.
       
      int32 max_recipe_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxRecipeCount in interface FetchCacheUpdateRequestOrBuilder
      Returns:
      The maxRecipeCount.
    • setMaxRecipeCount

      public FetchCacheUpdateRequest.Builder setMaxRecipeCount(int value)
       Optional. The maximum number of key recipes to return in the response.
       If not set, a default limit of 100 will be used.
       
      int32 max_recipe_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxRecipeCount to set.
      Returns:
      This builder for chaining.
    • clearMaxRecipeCount

      public FetchCacheUpdateRequest.Builder clearMaxRecipeCount()
       Optional. The maximum number of key recipes to return in the response.
       If not set, a default limit of 100 will be used.
       
      int32 max_recipe_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMaxRangeCount

      public int getMaxRangeCount()
       Optional. The maximum number of ranges to return in the response.
       If not set, a default limit of 10000 will be used.
       
      int32 max_range_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxRangeCount in interface FetchCacheUpdateRequestOrBuilder
      Returns:
      The maxRangeCount.
    • setMaxRangeCount

      public FetchCacheUpdateRequest.Builder setMaxRangeCount(int value)
       Optional. The maximum number of ranges to return in the response.
       If not set, a default limit of 10000 will be used.
       
      int32 max_range_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxRangeCount to set.
      Returns:
      This builder for chaining.
    • clearMaxRangeCount

      public FetchCacheUpdateRequest.Builder clearMaxRangeCount()
       Optional. The maximum number of ranges to return in the response.
       If not set, a default limit of 10000 will be used.
       
      int32 max_range_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.