Package io.deephaven.proto.controller
Class WorkerKind.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WorkerKind.Builder>
io.deephaven.proto.controller.WorkerKind.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WorkerKindOrBuilder,Cloneable
- Enclosing class:
- WorkerKind
public static final class WorkerKind.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WorkerKind.Builder>
implements WorkerKindOrBuilder
A WorkerKind is displayed as an "Engine" in the UI, and defines either the Legacy worker or version of Core+ with associated configuration (e.g., extra packages; properties, etc.).Protobuf type
io.deephaven.proto.controller.WorkerKind-
Method Summary
Modifier and TypeMethodDescriptionaddAllImplementedProtocols(Iterable<? extends WorkerProtocol> values) The protocols implemented by this worker kindThe protocols implemented by this worker kindaddAllWorkerControlTypes(Iterable<String> values) What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)The protocols implemented by this worker kindaddImplementedProtocolsValue(int value) The protocols implemented by this worker kindaddWorkerControlTypes(String value) What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)addWorkerControlTypesBytes(com.google.protobuf.ByteString value) What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)build()clear()string description = 2;Should this worker kind create an ephemeral Python virtual environment by default.The protocols implemented by this worker kindThe name of the worker kind used in persistent query configurationsThe title used for drop-down selections in the UIWhat kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)string description = 2;com.google.protobuf.ByteStringstring description = 2;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanShould this worker kind create an ephemeral Python virtual environment by default.getImplementedProtocols(int index) The protocols implemented by this worker kindintThe protocols implemented by this worker kindThe protocols implemented by this worker kindintgetImplementedProtocolsValue(int index) The protocols implemented by this worker kindThe protocols implemented by this worker kindgetName()The name of the worker kind used in persistent query configurationscom.google.protobuf.ByteStringThe name of the worker kind used in persistent query configurationsgetTitle()The title used for drop-down selections in the UIcom.google.protobuf.ByteStringThe title used for drop-down selections in the UIgetWorkerControlTypes(int index) What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)com.google.protobuf.ByteStringgetWorkerControlTypesBytes(int index) What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)intWhat kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)com.google.protobuf.ProtocolStringListWhat kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(WorkerKind other) setDescription(String value) string description = 2;setDescriptionBytes(com.google.protobuf.ByteString value) string description = 2;setEphemeralVenvDefault(boolean value) Should this worker kind create an ephemeral Python virtual environment by default.setImplementedProtocols(int index, WorkerProtocol value) The protocols implemented by this worker kindsetImplementedProtocolsValue(int index, int value) The protocols implemented by this worker kindThe name of the worker kind used in persistent query configurationssetNameBytes(com.google.protobuf.ByteString value) The name of the worker kind used in persistent query configurationsThe title used for drop-down selections in the UIsetTitleBytes(com.google.protobuf.ByteString value) The title used for drop-down selections in the UIsetWorkerControlTypes(int index, String value) What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)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<WorkerKind.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<WorkerKind.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<WorkerKind.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<WorkerKind.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<WorkerKind.Builder>
-
mergeFrom
public WorkerKind.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<WorkerKind.Builder>- Throws:
IOException
-
getName
The name of the worker kind used in persistent query configurations
string name = 1;- Specified by:
getNamein interfaceWorkerKindOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the worker kind used in persistent query configurations
string name = 1;- Specified by:
getNameBytesin interfaceWorkerKindOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the worker kind used in persistent query configurations
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the worker kind used in persistent query configurations
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the worker kind used in persistent query configurations
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
string description = 2;- Specified by:
getDescriptionin interfaceWorkerKindOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()string description = 2;- Specified by:
getDescriptionBytesin interfaceWorkerKindOrBuilder- Returns:
- The bytes for description.
-
setDescription
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getTitle
The title used for drop-down selections in the UI
string title = 3;- Specified by:
getTitlein interfaceWorkerKindOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()The title used for drop-down selections in the UI
string title = 3;- Specified by:
getTitleBytesin interfaceWorkerKindOrBuilder- Returns:
- The bytes for title.
-
setTitle
The title used for drop-down selections in the UI
string title = 3;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
The title used for drop-down selections in the UI
string title = 3;- Returns:
- This builder for chaining.
-
setTitleBytes
The title used for drop-down selections in the UI
string title = 3;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getWorkerControlTypesList
public com.google.protobuf.ProtocolStringList getWorkerControlTypesList()What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)
repeated string worker_control_types = 4;- Specified by:
getWorkerControlTypesListin interfaceWorkerKindOrBuilder- Returns:
- A list containing the workerControlTypes.
-
getWorkerControlTypesCount
public int getWorkerControlTypesCount()What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)
repeated string worker_control_types = 4;- Specified by:
getWorkerControlTypesCountin interfaceWorkerKindOrBuilder- Returns:
- The count of workerControlTypes.
-
getWorkerControlTypes
What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)
repeated string worker_control_types = 4;- Specified by:
getWorkerControlTypesin interfaceWorkerKindOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The workerControlTypes at the given index.
-
getWorkerControlTypesBytes
public com.google.protobuf.ByteString getWorkerControlTypesBytes(int index) What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)
repeated string worker_control_types = 4;- Specified by:
getWorkerControlTypesBytesin interfaceWorkerKindOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the workerControlTypes at the given index.
-
setWorkerControlTypes
What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)
repeated string worker_control_types = 4;- Parameters:
index- The index to set the value at.value- The workerControlTypes to set.- Returns:
- This builder for chaining.
-
addWorkerControlTypes
What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)
repeated string worker_control_types = 4;- Parameters:
value- The workerControlTypes to add.- Returns:
- This builder for chaining.
-
addAllWorkerControlTypes
What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)
repeated string worker_control_types = 4;- Parameters:
values- The workerControlTypes to add.- Returns:
- This builder for chaining.
-
clearWorkerControlTypes
What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)
repeated string worker_control_types = 4;- Returns:
- This builder for chaining.
-
addWorkerControlTypesBytes
What kind of worker control types are supported by this worker kind (e.g., local process or kubernetes)
repeated string worker_control_types = 4;- Parameters:
value- The bytes of the workerControlTypes to add.- Returns:
- This builder for chaining.
-
getImplementedProtocolsList
The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Specified by:
getImplementedProtocolsListin interfaceWorkerKindOrBuilder- Returns:
- A list containing the implementedProtocols.
-
getImplementedProtocolsCount
public int getImplementedProtocolsCount()The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Specified by:
getImplementedProtocolsCountin interfaceWorkerKindOrBuilder- Returns:
- The count of implementedProtocols.
-
getImplementedProtocols
The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Specified by:
getImplementedProtocolsin interfaceWorkerKindOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The implementedProtocols at the given index.
-
setImplementedProtocols
The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Parameters:
index- The index to set the value at.value- The implementedProtocols to set.- Returns:
- This builder for chaining.
-
addImplementedProtocols
The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Parameters:
value- The implementedProtocols to add.- Returns:
- This builder for chaining.
-
addAllImplementedProtocols
The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Parameters:
values- The implementedProtocols to add.- Returns:
- This builder for chaining.
-
clearImplementedProtocols
The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Returns:
- This builder for chaining.
-
getImplementedProtocolsValueList
The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Specified by:
getImplementedProtocolsValueListin interfaceWorkerKindOrBuilder- Returns:
- A list containing the enum numeric values on the wire for implementedProtocols.
-
getImplementedProtocolsValue
public int getImplementedProtocolsValue(int index) The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Specified by:
getImplementedProtocolsValuein interfaceWorkerKindOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of implementedProtocols at the given index.
-
setImplementedProtocolsValue
The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for implementedProtocols to set.- Returns:
- This builder for chaining.
-
addImplementedProtocolsValue
The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Parameters:
value- The enum numeric value on the wire for implementedProtocols to add.- Returns:
- This builder for chaining.
-
addAllImplementedProtocolsValue
The protocols implemented by this worker kind
repeated .io.deephaven.proto.controller.WorkerProtocol implemented_protocols = 5;- Parameters:
values- The enum numeric values on the wire for implementedProtocols to add.- Returns:
- This builder for chaining.
-
getEphemeralVenvDefault
public boolean getEphemeralVenvDefault()Should this worker kind create an ephemeral Python virtual environment by default.
bool ephemeral_venv_default = 6;- Specified by:
getEphemeralVenvDefaultin interfaceWorkerKindOrBuilder- Returns:
- The ephemeralVenvDefault.
-
setEphemeralVenvDefault
Should this worker kind create an ephemeral Python virtual environment by default.
bool ephemeral_venv_default = 6;- Parameters:
value- The ephemeralVenvDefault to set.- Returns:
- This builder for chaining.
-
clearEphemeralVenvDefault
Should this worker kind create an ephemeral Python virtual environment by default.
bool ephemeral_venv_default = 6;- Returns:
- This builder for chaining.
-