Class MemcacheParameters.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MemcacheParameters.Builder>
com.google.cloud.memcache.v1.MemcacheParameters.Builder
All Implemented Interfaces:
MemcacheParametersOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MemcacheParameters

public static final class MemcacheParameters.Builder extends com.google.protobuf.GeneratedMessage.Builder<MemcacheParameters.Builder> implements MemcacheParametersOrBuilder
Protobuf type google.cloud.memcache.v1.MemcacheParameters
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<MemcacheParameters.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<MemcacheParameters.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MemcacheParameters.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<MemcacheParameters.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<MemcacheParameters.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public MemcacheParameters.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<MemcacheParameters.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Output only. The unique ID associated with this set of parameters. Users
       can use this id to determine if the parameters associated with the instance
       differ from the parameters associated with the nodes. A discrepancy between
       parameter ids can inform users that they may need to take action to apply
       parameters on nodes.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface MemcacheParametersOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Output only. The unique ID associated with this set of parameters. Users
       can use this id to determine if the parameters associated with the instance
       differ from the parameters associated with the nodes. A discrepancy between
       parameter ids can inform users that they may need to take action to apply
       parameters on nodes.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIdBytes in interface MemcacheParametersOrBuilder
      Returns:
      The bytes for id.
    • setId

      public MemcacheParameters.Builder setId(String value)
       Output only. The unique ID associated with this set of parameters. Users
       can use this id to determine if the parameters associated with the instance
       differ from the parameters associated with the nodes. A discrepancy between
       parameter ids can inform users that they may need to take action to apply
       parameters on nodes.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public MemcacheParameters.Builder clearId()
       Output only. The unique ID associated with this set of parameters. Users
       can use this id to determine if the parameters associated with the instance
       differ from the parameters associated with the nodes. A discrepancy between
       parameter ids can inform users that they may need to take action to apply
       parameters on nodes.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIdBytes

      public MemcacheParameters.Builder setIdBytes(com.google.protobuf.ByteString value)
       Output only. The unique ID associated with this set of parameters. Users
       can use this id to determine if the parameters associated with the instance
       differ from the parameters associated with the nodes. A discrepancy between
       parameter ids can inform users that they may need to take action to apply
       parameters on nodes.
       
      string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getParamsCount

      public int getParamsCount()
      Description copied from interface: MemcacheParametersOrBuilder
       User defined set of parameters to use in the memcached process.
       
      map<string, string> params = 3;
      Specified by:
      getParamsCount in interface MemcacheParametersOrBuilder
    • containsParams

      public boolean containsParams(String key)
       User defined set of parameters to use in the memcached process.
       
      map<string, string> params = 3;
      Specified by:
      containsParams in interface MemcacheParametersOrBuilder
    • getParams

      @Deprecated public Map<String,String> getParams()
      Deprecated.
      Use getParamsMap() instead.
      Specified by:
      getParams in interface MemcacheParametersOrBuilder
    • getParamsMap

      public Map<String,String> getParamsMap()
       User defined set of parameters to use in the memcached process.
       
      map<string, string> params = 3;
      Specified by:
      getParamsMap in interface MemcacheParametersOrBuilder
    • getParamsOrDefault

      public String getParamsOrDefault(String key, String defaultValue)
       User defined set of parameters to use in the memcached process.
       
      map<string, string> params = 3;
      Specified by:
      getParamsOrDefault in interface MemcacheParametersOrBuilder
    • getParamsOrThrow

      public String getParamsOrThrow(String key)
       User defined set of parameters to use in the memcached process.
       
      map<string, string> params = 3;
      Specified by:
      getParamsOrThrow in interface MemcacheParametersOrBuilder
    • clearParams

      public MemcacheParameters.Builder clearParams()
    • removeParams

      public MemcacheParameters.Builder removeParams(String key)
       User defined set of parameters to use in the memcached process.
       
      map<string, string> params = 3;
    • getMutableParams

      @Deprecated public Map<String,String> getMutableParams()
      Deprecated.
      Use alternate mutation accessors instead.
    • putParams

      public MemcacheParameters.Builder putParams(String key, String value)
       User defined set of parameters to use in the memcached process.
       
      map<string, string> params = 3;
    • putAllParams

      public MemcacheParameters.Builder putAllParams(Map<String,String> values)
       User defined set of parameters to use in the memcached process.
       
      map<string, string> params = 3;