Package com.google.cloud.dataplex.v1
Class Task.NotebookTaskConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Task.NotebookTaskConfig.Builder>
-
- com.google.cloud.dataplex.v1.Task.NotebookTaskConfig.Builder
-
- All Implemented Interfaces:
Task.NotebookTaskConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Task.NotebookTaskConfig
public static final class Task.NotebookTaskConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Task.NotebookTaskConfig.Builder> implements Task.NotebookTaskConfigOrBuilder
Config for running scheduled notebooks.
Protobuf typegoogle.cloud.dataplex.v1.Task.NotebookTaskConfig
-
-
Method Summary
-
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<Task.NotebookTaskConfig.Builder>
-
clear
public Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.Builder>
-
getDefaultInstanceForType
public Task.NotebookTaskConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Task.NotebookTaskConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Task.NotebookTaskConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.Builder>
-
setField
public Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.Builder>
-
clearField
public Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.Builder>
-
clearOneof
public Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.Builder>
-
setRepeatedField
public Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.Builder>
-
addRepeatedField
public Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.Builder>
-
mergeFrom
public Task.NotebookTaskConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Task.NotebookTaskConfig.Builder>
-
mergeFrom
public Task.NotebookTaskConfig.Builder mergeFrom(Task.NotebookTaskConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Task.NotebookTaskConfig.Builder>
-
mergeFrom
public Task.NotebookTaskConfig.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<Task.NotebookTaskConfig.Builder>
- Throws:
IOException
-
getNotebook
public String getNotebook()
Required. Path to input notebook. This can be the Cloud Storage URI of the notebook file or the path to a Notebook Content. The execution args are accessible as environment variables (`TASK_key=value`).
string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getNotebook
in interfaceTask.NotebookTaskConfigOrBuilder
- Returns:
- The notebook.
-
getNotebookBytes
public com.google.protobuf.ByteString getNotebookBytes()
Required. Path to input notebook. This can be the Cloud Storage URI of the notebook file or the path to a Notebook Content. The execution args are accessible as environment variables (`TASK_key=value`).
string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getNotebookBytes
in interfaceTask.NotebookTaskConfigOrBuilder
- Returns:
- The bytes for notebook.
-
setNotebook
public Task.NotebookTaskConfig.Builder setNotebook(String value)
Required. Path to input notebook. This can be the Cloud Storage URI of the notebook file or the path to a Notebook Content. The execution args are accessible as environment variables (`TASK_key=value`).
string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The notebook to set.- Returns:
- This builder for chaining.
-
clearNotebook
public Task.NotebookTaskConfig.Builder clearNotebook()
Required. Path to input notebook. This can be the Cloud Storage URI of the notebook file or the path to a Notebook Content. The execution args are accessible as environment variables (`TASK_key=value`).
string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setNotebookBytes
public Task.NotebookTaskConfig.Builder setNotebookBytes(com.google.protobuf.ByteString value)
Required. Path to input notebook. This can be the Cloud Storage URI of the notebook file or the path to a Notebook Content. The execution args are accessible as environment variables (`TASK_key=value`).
string notebook = 4 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for notebook to set.- Returns:
- This builder for chaining.
-
hasInfrastructureSpec
public boolean hasInfrastructureSpec()
Optional. Infrastructure specification for the execution.
.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasInfrastructureSpec
in interfaceTask.NotebookTaskConfigOrBuilder
- Returns:
- Whether the infrastructureSpec field is set.
-
getInfrastructureSpec
public Task.InfrastructureSpec getInfrastructureSpec()
Optional. Infrastructure specification for the execution.
.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getInfrastructureSpec
in interfaceTask.NotebookTaskConfigOrBuilder
- Returns:
- The infrastructureSpec.
-
setInfrastructureSpec
public Task.NotebookTaskConfig.Builder setInfrastructureSpec(Task.InfrastructureSpec value)
Optional. Infrastructure specification for the execution.
.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
-
setInfrastructureSpec
public Task.NotebookTaskConfig.Builder setInfrastructureSpec(Task.InfrastructureSpec.Builder builderForValue)
Optional. Infrastructure specification for the execution.
.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
-
mergeInfrastructureSpec
public Task.NotebookTaskConfig.Builder mergeInfrastructureSpec(Task.InfrastructureSpec value)
Optional. Infrastructure specification for the execution.
.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
-
clearInfrastructureSpec
public Task.NotebookTaskConfig.Builder clearInfrastructureSpec()
Optional. Infrastructure specification for the execution.
.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getInfrastructureSpecBuilder
public Task.InfrastructureSpec.Builder getInfrastructureSpecBuilder()
Optional. Infrastructure specification for the execution.
.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
-
getInfrastructureSpecOrBuilder
public Task.InfrastructureSpecOrBuilder getInfrastructureSpecOrBuilder()
Optional. Infrastructure specification for the execution.
.google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getInfrastructureSpecOrBuilder
in interfaceTask.NotebookTaskConfigOrBuilder
-
getFileUrisList
public com.google.protobuf.ProtocolStringList getFileUrisList()
Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getFileUrisList
in interfaceTask.NotebookTaskConfigOrBuilder
- Returns:
- A list containing the fileUris.
-
getFileUrisCount
public int getFileUrisCount()
Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getFileUrisCount
in interfaceTask.NotebookTaskConfigOrBuilder
- Returns:
- The count of fileUris.
-
getFileUris
public String getFileUris(int index)
Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getFileUris
in interfaceTask.NotebookTaskConfigOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The fileUris at the given index.
-
getFileUrisBytes
public com.google.protobuf.ByteString getFileUrisBytes(int index)
Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getFileUrisBytes
in interfaceTask.NotebookTaskConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the fileUris at the given index.
-
setFileUris
public Task.NotebookTaskConfig.Builder setFileUris(int index, String value)
Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index to set the value at.value
- The fileUris to set.- Returns:
- This builder for chaining.
-
addFileUris
public Task.NotebookTaskConfig.Builder addFileUris(String value)
Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The fileUris to add.- Returns:
- This builder for chaining.
-
addAllFileUris
public Task.NotebookTaskConfig.Builder addAllFileUris(Iterable<String> values)
Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
values
- The fileUris to add.- Returns:
- This builder for chaining.
-
clearFileUris
public Task.NotebookTaskConfig.Builder clearFileUris()
Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
addFileUrisBytes
public Task.NotebookTaskConfig.Builder addFileUrisBytes(com.google.protobuf.ByteString value)
Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes of the fileUris to add.- Returns:
- This builder for chaining.
-
getArchiveUrisList
public com.google.protobuf.ProtocolStringList getArchiveUrisList()
Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getArchiveUrisList
in interfaceTask.NotebookTaskConfigOrBuilder
- Returns:
- A list containing the archiveUris.
-
getArchiveUrisCount
public int getArchiveUrisCount()
Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getArchiveUrisCount
in interfaceTask.NotebookTaskConfigOrBuilder
- Returns:
- The count of archiveUris.
-
getArchiveUris
public String getArchiveUris(int index)
Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getArchiveUris
in interfaceTask.NotebookTaskConfigOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The archiveUris at the given index.
-
getArchiveUrisBytes
public com.google.protobuf.ByteString getArchiveUrisBytes(int index)
Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getArchiveUrisBytes
in interfaceTask.NotebookTaskConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the archiveUris at the given index.
-
setArchiveUris
public Task.NotebookTaskConfig.Builder setArchiveUris(int index, String value)
Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index to set the value at.value
- The archiveUris to set.- Returns:
- This builder for chaining.
-
addArchiveUris
public Task.NotebookTaskConfig.Builder addArchiveUris(String value)
Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The archiveUris to add.- Returns:
- This builder for chaining.
-
addAllArchiveUris
public Task.NotebookTaskConfig.Builder addAllArchiveUris(Iterable<String> values)
Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
values
- The archiveUris to add.- Returns:
- This builder for chaining.
-
clearArchiveUris
public Task.NotebookTaskConfig.Builder clearArchiveUris()
Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
addArchiveUrisBytes
public Task.NotebookTaskConfig.Builder addArchiveUrisBytes(com.google.protobuf.ByteString value)
Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes of the archiveUris to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Task.NotebookTaskConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Task.NotebookTaskConfig.Builder>
-
mergeUnknownFields
public final Task.NotebookTaskConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Task.NotebookTaskConfig.Builder>
-
-