Class ApplyParametersRequest.Builder

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

public static final class ApplyParametersRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ApplyParametersRequest.Builder> implements ApplyParametersRequestOrBuilder
 Request for [ApplyParameters][google.cloud.memcache.v1.CloudMemcache.ApplyParameters].
 
Protobuf type google.cloud.memcache.v1.ApplyParametersRequest
  • 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<ApplyParametersRequest.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<ApplyParametersRequest.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<ApplyParametersRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ApplyParametersRequest.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<ApplyParametersRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Resource name of the Memcached instance for which parameter group updates
       should be applied.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface ApplyParametersRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Resource name of the Memcached instance for which parameter group updates
       should be applied.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface ApplyParametersRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ApplyParametersRequest.Builder setName(String value)
       Required. Resource name of the Memcached instance for which parameter group updates
       should be applied.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ApplyParametersRequest.Builder clearName()
       Required. Resource name of the Memcached instance for which parameter group updates
       should be applied.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public ApplyParametersRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Resource name of the Memcached instance for which parameter group updates
       should be applied.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getNodeIdsList

      public com.google.protobuf.ProtocolStringList getNodeIdsList()
       Nodes to which the instance-level parameter group is applied.
       
      repeated string node_ids = 2;
      Specified by:
      getNodeIdsList in interface ApplyParametersRequestOrBuilder
      Returns:
      A list containing the nodeIds.
    • getNodeIdsCount

      public int getNodeIdsCount()
       Nodes to which the instance-level parameter group is applied.
       
      repeated string node_ids = 2;
      Specified by:
      getNodeIdsCount in interface ApplyParametersRequestOrBuilder
      Returns:
      The count of nodeIds.
    • getNodeIds

      public String getNodeIds(int index)
       Nodes to which the instance-level parameter group is applied.
       
      repeated string node_ids = 2;
      Specified by:
      getNodeIds in interface ApplyParametersRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The nodeIds at the given index.
    • getNodeIdsBytes

      public com.google.protobuf.ByteString getNodeIdsBytes(int index)
       Nodes to which the instance-level parameter group is applied.
       
      repeated string node_ids = 2;
      Specified by:
      getNodeIdsBytes in interface ApplyParametersRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the nodeIds at the given index.
    • setNodeIds

      public ApplyParametersRequest.Builder setNodeIds(int index, String value)
       Nodes to which the instance-level parameter group is applied.
       
      repeated string node_ids = 2;
      Parameters:
      index - The index to set the value at.
      value - The nodeIds to set.
      Returns:
      This builder for chaining.
    • addNodeIds

      public ApplyParametersRequest.Builder addNodeIds(String value)
       Nodes to which the instance-level parameter group is applied.
       
      repeated string node_ids = 2;
      Parameters:
      value - The nodeIds to add.
      Returns:
      This builder for chaining.
    • addAllNodeIds

      public ApplyParametersRequest.Builder addAllNodeIds(Iterable<String> values)
       Nodes to which the instance-level parameter group is applied.
       
      repeated string node_ids = 2;
      Parameters:
      values - The nodeIds to add.
      Returns:
      This builder for chaining.
    • clearNodeIds

      public ApplyParametersRequest.Builder clearNodeIds()
       Nodes to which the instance-level parameter group is applied.
       
      repeated string node_ids = 2;
      Returns:
      This builder for chaining.
    • addNodeIdsBytes

      public ApplyParametersRequest.Builder addNodeIdsBytes(com.google.protobuf.ByteString value)
       Nodes to which the instance-level parameter group is applied.
       
      repeated string node_ids = 2;
      Parameters:
      value - The bytes of the nodeIds to add.
      Returns:
      This builder for chaining.
    • getApplyAll

      public boolean getApplyAll()
       Whether to apply instance-level parameter group to all nodes. If set to
       true, users are restricted from specifying individual nodes, and
       `ApplyParameters` updates all nodes within the instance.
       
      bool apply_all = 3;
      Specified by:
      getApplyAll in interface ApplyParametersRequestOrBuilder
      Returns:
      The applyAll.
    • setApplyAll

      public ApplyParametersRequest.Builder setApplyAll(boolean value)
       Whether to apply instance-level parameter group to all nodes. If set to
       true, users are restricted from specifying individual nodes, and
       `ApplyParameters` updates all nodes within the instance.
       
      bool apply_all = 3;
      Parameters:
      value - The applyAll to set.
      Returns:
      This builder for chaining.
    • clearApplyAll

      public ApplyParametersRequest.Builder clearApplyAll()
       Whether to apply instance-level parameter group to all nodes. If set to
       true, users are restricted from specifying individual nodes, and
       `ApplyParameters` updates all nodes within the instance.
       
      bool apply_all = 3;
      Returns:
      This builder for chaining.