Class ApplySoftwareUpdateRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder> implements ApplySoftwareUpdateRequestOrBuilder
Request for [ApplySoftwareUpdate][google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate].
Protobuf typegoogle.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplySoftwareUpdateRequest.Builder
addAllNodeIds(Iterable<String> values)
Nodes to which we should apply the update to.ApplySoftwareUpdateRequest.Builder
addNodeIds(String value)
Nodes to which we should apply the update to.ApplySoftwareUpdateRequest.Builder
addNodeIdsBytes(com.google.protobuf.ByteString value)
Nodes to which we should apply the update to.ApplySoftwareUpdateRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ApplySoftwareUpdateRequest
build()
ApplySoftwareUpdateRequest
buildPartial()
ApplySoftwareUpdateRequest.Builder
clear()
ApplySoftwareUpdateRequest.Builder
clearApplyAll()
Whether to apply the update to all nodes.ApplySoftwareUpdateRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ApplySoftwareUpdateRequest.Builder
clearInstance()
Required.ApplySoftwareUpdateRequest.Builder
clearNodeIds()
Nodes to which we should apply the update to.ApplySoftwareUpdateRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ApplySoftwareUpdateRequest.Builder
clone()
boolean
getApplyAll()
Whether to apply the update to all nodes.ApplySoftwareUpdateRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getInstance()
Required.com.google.protobuf.ByteString
getInstanceBytes()
Required.String
getNodeIds(int index)
Nodes to which we should apply the update to.com.google.protobuf.ByteString
getNodeIdsBytes(int index)
Nodes to which we should apply the update to.int
getNodeIdsCount()
Nodes to which we should apply the update to.com.google.protobuf.ProtocolStringList
getNodeIdsList()
Nodes to which we should apply the update to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ApplySoftwareUpdateRequest.Builder
mergeFrom(ApplySoftwareUpdateRequest other)
ApplySoftwareUpdateRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ApplySoftwareUpdateRequest.Builder
mergeFrom(com.google.protobuf.Message other)
ApplySoftwareUpdateRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ApplySoftwareUpdateRequest.Builder
setApplyAll(boolean value)
Whether to apply the update to all nodes.ApplySoftwareUpdateRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ApplySoftwareUpdateRequest.Builder
setInstance(String value)
Required.ApplySoftwareUpdateRequest.Builder
setInstanceBytes(com.google.protobuf.ByteString value)
Required.ApplySoftwareUpdateRequest.Builder
setNodeIds(int index, String value)
Nodes to which we should apply the update to.ApplySoftwareUpdateRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ApplySoftwareUpdateRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
clear
public ApplySoftwareUpdateRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
getDefaultInstanceForType
public ApplySoftwareUpdateRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ApplySoftwareUpdateRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ApplySoftwareUpdateRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ApplySoftwareUpdateRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
setField
public ApplySoftwareUpdateRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
clearField
public ApplySoftwareUpdateRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
clearOneof
public ApplySoftwareUpdateRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
setRepeatedField
public ApplySoftwareUpdateRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
addRepeatedField
public ApplySoftwareUpdateRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
mergeFrom
public ApplySoftwareUpdateRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ApplySoftwareUpdateRequest.Builder>
-
mergeFrom
public ApplySoftwareUpdateRequest.Builder mergeFrom(ApplySoftwareUpdateRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
mergeFrom
public ApplySoftwareUpdateRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 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:
getInstanceBytes
in interfaceApplySoftwareUpdateRequestOrBuilder
- 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 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:
getNodeIdsCount
in interfaceApplySoftwareUpdateRequestOrBuilder
- 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 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:
getNodeIdsBytes
in interfaceApplySoftwareUpdateRequestOrBuilder
- 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 interfaceApplySoftwareUpdateRequestOrBuilder
- 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.
-
setUnknownFields
public final ApplySoftwareUpdateRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
mergeUnknownFields
public final ApplySoftwareUpdateRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ApplySoftwareUpdateRequest.Builder>
-
-