public final class TrinoJob extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
TrinoJob.Builder
A Dataproc job for running [Trino](https://trino.io/) queries.
|
static class |
TrinoJob.QueriesCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CLIENT_TAGS_FIELD_NUMBER |
static int |
CONTINUE_ON_FAILURE_FIELD_NUMBER |
static int |
LOGGING_CONFIG_FIELD_NUMBER |
static int |
OUTPUT_FORMAT_FIELD_NUMBER |
static int |
PROPERTIES_FIELD_NUMBER |
static int |
QUERY_FILE_URI_FIELD_NUMBER |
static int |
QUERY_LIST_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsProperties(String key)
Optional.
|
boolean |
equals(Object obj) |
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.
|
static TrinoJob |
getDefaultInstance() |
TrinoJob |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
LoggingConfig |
getLoggingConfig()
Optional.
|
LoggingConfigOrBuilder |
getLoggingConfigOrBuilder()
Optional.
|
String |
getOutputFormat()
Optional.
|
com.google.protobuf.ByteString |
getOutputFormatBytes()
Optional.
|
com.google.protobuf.Parser<TrinoJob> |
getParserForType() |
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.
|
QueryListOrBuilder |
getQueryListOrBuilder()
A list of queries.
|
int |
getSerializedSize() |
int |
hashCode() |
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) |
boolean |
isInitialized() |
static TrinoJob.Builder |
newBuilder() |
static TrinoJob.Builder |
newBuilder(TrinoJob prototype) |
TrinoJob.Builder |
newBuilderForType() |
protected TrinoJob.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TrinoJob |
parseDelimitedFrom(InputStream input) |
static TrinoJob |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrinoJob |
parseFrom(byte[] data) |
static TrinoJob |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrinoJob |
parseFrom(ByteBuffer data) |
static TrinoJob |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrinoJob |
parseFrom(com.google.protobuf.ByteString data) |
static TrinoJob |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrinoJob |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TrinoJob |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TrinoJob |
parseFrom(InputStream input) |
static TrinoJob |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TrinoJob> |
parser() |
TrinoJob.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int QUERY_FILE_URI_FIELD_NUMBER
public static final int QUERY_LIST_FIELD_NUMBER
public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER
public static final int OUTPUT_FORMAT_FIELD_NUMBER
public static final int CLIENT_TAGS_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
public static final int LOGGING_CONFIG_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public TrinoJob.QueriesCase getQueriesCase()
getQueriesCase in interface TrinoJobOrBuilderpublic 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 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 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 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 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 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 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 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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TrinoJob parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrinoJob parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrinoJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrinoJob parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrinoJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrinoJob parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TrinoJob parseFrom(InputStream input) throws IOException
IOExceptionpublic static TrinoJob parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrinoJob parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TrinoJob parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TrinoJob parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TrinoJob parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TrinoJob.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TrinoJob.Builder newBuilder()
public static TrinoJob.Builder newBuilder(TrinoJob prototype)
public TrinoJob.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TrinoJob.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TrinoJob getDefaultInstance()
public static com.google.protobuf.Parser<TrinoJob> parser()
public com.google.protobuf.Parser<TrinoJob> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TrinoJob getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.