public static final class TrinoJob.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder> implements TrinoJobOrBuilder
A Dataproc job for running [Trino](https://trino.io/) queries. **IMPORTANT**: The [Dataproc Trino Optional Component](https://cloud.google.com/dataproc/docs/concepts/components/trino) must be enabled when the cluster is created to submit a Trino job to the cluster.Protobuf type
google.cloud.dataproc.v1.TrinoJob| Modifier and Type | Method and Description |
|---|---|
TrinoJob.Builder |
addAllClientTags(Iterable<String> values)
Optional.
|
TrinoJob.Builder |
addClientTags(String value)
Optional.
|
TrinoJob.Builder |
addClientTagsBytes(com.google.protobuf.ByteString value)
Optional.
|
TrinoJob.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TrinoJob |
build() |
TrinoJob |
buildPartial() |
TrinoJob.Builder |
clear() |
TrinoJob.Builder |
clearClientTags()
Optional.
|
TrinoJob.Builder |
clearContinueOnFailure()
Optional.
|
TrinoJob.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TrinoJob.Builder |
clearLoggingConfig()
Optional.
|
TrinoJob.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TrinoJob.Builder |
clearOutputFormat()
Optional.
|
TrinoJob.Builder |
clearProperties() |
TrinoJob.Builder |
clearQueries() |
TrinoJob.Builder |
clearQueryFileUri()
The HCFS URI of the script that contains SQL queries.
|
TrinoJob.Builder |
clearQueryList()
A list of queries.
|
TrinoJob.Builder |
clone() |
boolean |
containsProperties(String key)
Optional.
|
String |
getClientTags(int index)
Optional.
|
com.google.protobuf.ByteString |
getClientTagsBytes(int index)
Optional.
|
int |
getClientTagsCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getClientTagsList()
Optional.
|
boolean |
getContinueOnFailure()
Optional.
|
TrinoJob |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
LoggingConfig |
getLoggingConfig()
Optional.
|
LoggingConfig.Builder |
getLoggingConfigBuilder()
Optional.
|
LoggingConfigOrBuilder |
getLoggingConfigOrBuilder()
Optional.
|
Map<String,String> |
getMutableProperties()
Deprecated.
|
String |
getOutputFormat()
Optional.
|
com.google.protobuf.ByteString |
getOutputFormatBytes()
Optional.
|
Map<String,String> |
getProperties()
Deprecated.
|
int |
getPropertiesCount()
Optional.
|
Map<String,String> |
getPropertiesMap()
Optional.
|
String |
getPropertiesOrDefault(String key,
String defaultValue)
Optional.
|
String |
getPropertiesOrThrow(String key)
Optional.
|
TrinoJob.QueriesCase |
getQueriesCase() |
String |
getQueryFileUri()
The HCFS URI of the script that contains SQL queries.
|
com.google.protobuf.ByteString |
getQueryFileUriBytes()
The HCFS URI of the script that contains SQL queries.
|
QueryList |
getQueryList()
A list of queries.
|
QueryList.Builder |
getQueryListBuilder()
A list of queries.
|
QueryListOrBuilder |
getQueryListOrBuilder()
A list of queries.
|
boolean |
hasLoggingConfig()
Optional.
|
boolean |
hasQueryFileUri()
The HCFS URI of the script that contains SQL queries.
|
boolean |
hasQueryList()
A list of queries.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
TrinoJob.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrinoJob.Builder |
mergeFrom(com.google.protobuf.Message other) |
TrinoJob.Builder |
mergeFrom(TrinoJob other) |
TrinoJob.Builder |
mergeLoggingConfig(LoggingConfig value)
Optional.
|
TrinoJob.Builder |
mergeQueryList(QueryList value)
A list of queries.
|
TrinoJob.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TrinoJob.Builder |
putAllProperties(Map<String,String> values)
Optional.
|
TrinoJob.Builder |
putProperties(String key,
String value)
Optional.
|
TrinoJob.Builder |
removeProperties(String key)
Optional.
|
TrinoJob.Builder |
setClientTags(int index,
String value)
Optional.
|
TrinoJob.Builder |
setContinueOnFailure(boolean value)
Optional.
|
TrinoJob.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TrinoJob.Builder |
setLoggingConfig(LoggingConfig.Builder builderForValue)
Optional.
|
TrinoJob.Builder |
setLoggingConfig(LoggingConfig value)
Optional.
|
TrinoJob.Builder |
setOutputFormat(String value)
Optional.
|
TrinoJob.Builder |
setOutputFormatBytes(com.google.protobuf.ByteString value)
Optional.
|
TrinoJob.Builder |
setQueryFileUri(String value)
The HCFS URI of the script that contains SQL queries.
|
TrinoJob.Builder |
setQueryFileUriBytes(com.google.protobuf.ByteString value)
The HCFS URI of the script that contains SQL queries.
|
TrinoJob.Builder |
setQueryList(QueryList.Builder builderForValue)
A list of queries.
|
TrinoJob.Builder |
setQueryList(QueryList value)
A list of queries.
|
TrinoJob.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TrinoJob.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public TrinoJob.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public TrinoJob getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TrinoJob build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TrinoJob buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TrinoJob.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public TrinoJob.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public TrinoJob.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public TrinoJob.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public TrinoJob.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public TrinoJob.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public TrinoJob.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrinoJob.Builder>public TrinoJob.Builder mergeFrom(TrinoJob other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public TrinoJob.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrinoJob.Builder>IOExceptionpublic TrinoJob.QueriesCase getQueriesCase()
getQueriesCase in interface TrinoJobOrBuilderpublic TrinoJob.Builder clearQueries()
public boolean hasQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;hasQueryFileUri in interface TrinoJobOrBuilderpublic String getQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;getQueryFileUri in interface TrinoJobOrBuilderpublic com.google.protobuf.ByteString getQueryFileUriBytes()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;getQueryFileUriBytes in interface TrinoJobOrBuilderpublic TrinoJob.Builder setQueryFileUri(String value)
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;value - The queryFileUri to set.public TrinoJob.Builder clearQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;public TrinoJob.Builder setQueryFileUriBytes(com.google.protobuf.ByteString value)
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;value - The bytes for queryFileUri to set.public boolean hasQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;hasQueryList in interface TrinoJobOrBuilderpublic QueryList getQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;getQueryList in interface TrinoJobOrBuilderpublic TrinoJob.Builder setQueryList(QueryList value)
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;public TrinoJob.Builder setQueryList(QueryList.Builder builderForValue)
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;public TrinoJob.Builder mergeQueryList(QueryList value)
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;public TrinoJob.Builder clearQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;public QueryList.Builder getQueryListBuilder()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;public QueryListOrBuilder getQueryListOrBuilder()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;getQueryListOrBuilder in interface TrinoJobOrBuilderpublic boolean getContinueOnFailure()
Optional. Whether to continue executing queries if a query fails. The default value is `false`. Setting to `true` can be useful when executing independent parallel queries.
bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];getContinueOnFailure in interface TrinoJobOrBuilderpublic TrinoJob.Builder setContinueOnFailure(boolean value)
Optional. Whether to continue executing queries if a query fails. The default value is `false`. Setting to `true` can be useful when executing independent parallel queries.
bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];value - The continueOnFailure to set.public TrinoJob.Builder clearContinueOnFailure()
Optional. Whether to continue executing queries if a query fails. The default value is `false`. Setting to `true` can be useful when executing independent parallel queries.
bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];public String getOutputFormat()
Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];getOutputFormat in interface TrinoJobOrBuilderpublic com.google.protobuf.ByteString getOutputFormatBytes()
Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];getOutputFormatBytes in interface TrinoJobOrBuilderpublic TrinoJob.Builder setOutputFormat(String value)
Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];value - The outputFormat to set.public TrinoJob.Builder clearOutputFormat()
Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];public TrinoJob.Builder setOutputFormatBytes(com.google.protobuf.ByteString value)
Optional. The format in which query output will be displayed. See the Trino documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for outputFormat to set.public com.google.protobuf.ProtocolStringList getClientTagsList()
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];getClientTagsList in interface TrinoJobOrBuilderpublic int getClientTagsCount()
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];getClientTagsCount in interface TrinoJobOrBuilderpublic String getClientTags(int index)
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];getClientTags in interface TrinoJobOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getClientTagsBytes(int index)
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];getClientTagsBytes in interface TrinoJobOrBuilderindex - The index of the value to return.public TrinoJob.Builder setClientTags(int index, String value)
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The clientTags to set.public TrinoJob.Builder addClientTags(String value)
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];value - The clientTags to add.public TrinoJob.Builder addAllClientTags(Iterable<String> values)
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];values - The clientTags to add.public TrinoJob.Builder clearClientTags()
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];public TrinoJob.Builder addClientTagsBytes(com.google.protobuf.ByteString value)
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the clientTags to add.public int getPropertiesCount()
TrinoJobOrBuilderOptional. A mapping of property names to values. Used to set Trino [session properties](https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
getPropertiesCount in interface TrinoJobOrBuilderpublic boolean containsProperties(String key)
Optional. A mapping of property names to values. Used to set Trino [session properties](https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
containsProperties in interface TrinoJobOrBuilder@Deprecated public Map<String,String> getProperties()
getPropertiesMap() instead.getProperties in interface TrinoJobOrBuilderpublic Map<String,String> getPropertiesMap()
Optional. A mapping of property names to values. Used to set Trino [session properties](https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
getPropertiesMap in interface TrinoJobOrBuilderpublic String getPropertiesOrDefault(String key, String defaultValue)
Optional. A mapping of property names to values. Used to set Trino [session properties](https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
getPropertiesOrDefault in interface TrinoJobOrBuilderpublic String getPropertiesOrThrow(String key)
Optional. A mapping of property names to values. Used to set Trino [session properties](https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
getPropertiesOrThrow in interface TrinoJobOrBuilderpublic TrinoJob.Builder clearProperties()
public TrinoJob.Builder removeProperties(String key)
Optional. A mapping of property names to values. Used to set Trino [session properties](https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated public Map<String,String> getMutableProperties()
public TrinoJob.Builder putProperties(String key, String value)
Optional. A mapping of property names to values. Used to set Trino [session properties](https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
public TrinoJob.Builder putAllProperties(Map<String,String> values)
Optional. A mapping of property names to values. Used to set Trino [session properties](https://trino.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Trino CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
public boolean hasLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
hasLoggingConfig in interface TrinoJobOrBuilderpublic LoggingConfig getLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
getLoggingConfig in interface TrinoJobOrBuilderpublic TrinoJob.Builder setLoggingConfig(LoggingConfig value)
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public TrinoJob.Builder setLoggingConfig(LoggingConfig.Builder builderForValue)
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public TrinoJob.Builder mergeLoggingConfig(LoggingConfig value)
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public TrinoJob.Builder clearLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public LoggingConfig.Builder getLoggingConfigBuilder()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
public LoggingConfigOrBuilder getLoggingConfigOrBuilder()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];
getLoggingConfigOrBuilder in interface TrinoJobOrBuilderpublic final TrinoJob.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>public final TrinoJob.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrinoJob.Builder>Copyright © 2024 Google LLC. All rights reserved.