Class ApplySoftwareUpdateRequest.Builder

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

public static final class ApplySoftwareUpdateRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ApplySoftwareUpdateRequest.Builder> implements ApplySoftwareUpdateRequestOrBuilder
 Request for [ApplySoftwareUpdate][google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate].
 
Protobuf type google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest
  • 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<ApplySoftwareUpdateRequest.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<ApplySoftwareUpdateRequest.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<ApplySoftwareUpdateRequest.Builder>
    • getDefaultInstanceForType

      public ApplySoftwareUpdateRequest 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 ApplySoftwareUpdateRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ApplySoftwareUpdateRequest.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<ApplySoftwareUpdateRequest.Builder>
      Throws:
      IOException
    • getInstance

      public String getInstance()
       Required. Resource name of the Memcached instance for which software update should be
       applied.
       
      string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getInstance in interface ApplySoftwareUpdateRequestOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       Required. Resource name of the Memcached instance for which software update should be
       applied.
       
      string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getInstanceBytes in interface ApplySoftwareUpdateRequestOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

      public ApplySoftwareUpdateRequest.Builder setInstance(String value)
       Required. Resource name of the Memcached instance for which software update should be
       applied.
       
      string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

      public ApplySoftwareUpdateRequest.Builder clearInstance()
       Required. Resource name of the Memcached instance for which software update should be
       applied.
       
      string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setInstanceBytes

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

      public com.google.protobuf.ProtocolStringList getNodeIdsList()
       Nodes to which we should apply the update to. Note all the selected nodes
       are updated in parallel.
       
      repeated string node_ids = 2;
      Specified by:
      getNodeIdsList in interface ApplySoftwareUpdateRequestOrBuilder
      Returns:
      A list containing the nodeIds.
    • getNodeIdsCount

      public int getNodeIdsCount()
       Nodes to which we should apply the update to. Note all the selected nodes
       are updated in parallel.
       
      repeated string node_ids = 2;
      Specified by:
      getNodeIdsCount in interface ApplySoftwareUpdateRequestOrBuilder
      Returns:
      The count of nodeIds.
    • getNodeIds

      public String getNodeIds(int index)
       Nodes to which we should apply the update to. Note all the selected nodes
       are updated in parallel.
       
      repeated string node_ids = 2;
      Specified by:
      getNodeIds in interface ApplySoftwareUpdateRequestOrBuilder
      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 we should apply the update to. Note all the selected nodes
       are updated in parallel.
       
      repeated string node_ids = 2;
      Specified by:
      getNodeIdsBytes in interface ApplySoftwareUpdateRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the nodeIds at the given index.
    • setNodeIds

      public ApplySoftwareUpdateRequest.Builder setNodeIds(int index, String value)
       Nodes to which we should apply the update to. Note all the selected nodes
       are updated in parallel.
       
      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 ApplySoftwareUpdateRequest.Builder addNodeIds(String value)
       Nodes to which we should apply the update to. Note all the selected nodes
       are updated in parallel.
       
      repeated string node_ids = 2;
      Parameters:
      value - The nodeIds to add.
      Returns:
      This builder for chaining.
    • addAllNodeIds

      public ApplySoftwareUpdateRequest.Builder addAllNodeIds(Iterable<String> values)
       Nodes to which we should apply the update to. Note all the selected nodes
       are updated in parallel.
       
      repeated string node_ids = 2;
      Parameters:
      values - The nodeIds to add.
      Returns:
      This builder for chaining.
    • clearNodeIds

      public ApplySoftwareUpdateRequest.Builder clearNodeIds()
       Nodes to which we should apply the update to. Note all the selected nodes
       are updated in parallel.
       
      repeated string node_ids = 2;
      Returns:
      This builder for chaining.
    • addNodeIdsBytes

      public ApplySoftwareUpdateRequest.Builder addNodeIdsBytes(com.google.protobuf.ByteString value)
       Nodes to which we should apply the update to. Note all the selected nodes
       are updated in parallel.
       
      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 the update to all nodes. If set to
       true, will explicitly restrict users from specifying any nodes, and apply
       software update to all nodes (where applicable) within the instance.
       
      bool apply_all = 3;
      Specified by:
      getApplyAll in interface ApplySoftwareUpdateRequestOrBuilder
      Returns:
      The applyAll.
    • setApplyAll

      public ApplySoftwareUpdateRequest.Builder setApplyAll(boolean value)
       Whether to apply the update to all nodes. If set to
       true, will explicitly restrict users from specifying any nodes, and apply
       software update to all nodes (where applicable) within the instance.
       
      bool apply_all = 3;
      Parameters:
      value - The applyAll to set.
      Returns:
      This builder for chaining.
    • clearApplyAll

      public ApplySoftwareUpdateRequest.Builder clearApplyAll()
       Whether to apply the update to all nodes. If set to
       true, will explicitly restrict users from specifying any nodes, and apply
       software update to all nodes (where applicable) within the instance.
       
      bool apply_all = 3;
      Returns:
      This builder for chaining.