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 Summary
Modifier and TypeMethodDescriptionaddAllNodeIds(Iterable<String> values) Nodes to which we should apply the update to.addNodeIds(String value) Nodes to which we should apply the update to.addNodeIdsBytes(com.google.protobuf.ByteString value) Nodes to which we should apply the update to.build()clear()Whether to apply the update to all nodes.Required.Nodes to which we should apply the update to.booleanWhether to apply the update to all nodes.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getNodeIds(int index) Nodes to which we should apply the update to.com.google.protobuf.ByteStringgetNodeIdsBytes(int index) Nodes to which we should apply the update to.intNodes to which we should apply the update to.com.google.protobuf.ProtocolStringListNodes to which we should apply the update to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setApplyAll(boolean value) Whether to apply the update to all nodes.setInstance(String value) Required.setInstanceBytes(com.google.protobuf.ByteString value) Required.setNodeIds(int index, String value) Nodes to which we should apply the update to.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ApplySoftwareUpdateRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ApplySoftwareUpdateRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ApplySoftwareUpdateRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApplySoftwareUpdateRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApplySoftwareUpdateRequest.Builder>- Throws:
IOException
-
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:
getInstancein interfaceApplySoftwareUpdateRequestOrBuilder- 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:
getInstanceBytesin interfaceApplySoftwareUpdateRequestOrBuilder- Returns:
- The bytes for instance.
-
setInstance
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
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
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:
getNodeIdsListin interfaceApplySoftwareUpdateRequestOrBuilder- 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:
getNodeIdsCountin interfaceApplySoftwareUpdateRequestOrBuilder- Returns:
- The count of nodeIds.
-
getNodeIds
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:
getNodeIdsin interfaceApplySoftwareUpdateRequestOrBuilder- 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:
getNodeIdsBytesin interfaceApplySoftwareUpdateRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the nodeIds at the given index.
-
setNodeIds
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
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
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
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
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:
getApplyAllin interfaceApplySoftwareUpdateRequestOrBuilder- Returns:
- The applyAll.
-
setApplyAll
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
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.
-