Package com.google.cloud.dataproc.v1
Class TrinoJob
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dataproc.v1.TrinoJob
-
- All Implemented Interfaces:
TrinoJobOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
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 typegoogle.cloud.dataproc.v1.TrinoJob- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrinoJob.BuilderA Dataproc job for running [Trino](https://trino.io/) queries.static classTrinoJob.QueriesCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCLIENT_TAGS_FIELD_NUMBERstatic intCONTINUE_ON_FAILURE_FIELD_NUMBERstatic intLOGGING_CONFIG_FIELD_NUMBERstatic intOUTPUT_FORMAT_FIELD_NUMBERstatic intPROPERTIES_FIELD_NUMBERstatic intQUERY_FILE_URI_FIELD_NUMBERstatic intQUERY_LIST_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsProperties(String key)Optional.booleanequals(Object obj)StringgetClientTags(int index)Optional.com.google.protobuf.ByteStringgetClientTagsBytes(int index)Optional.intgetClientTagsCount()Optional.com.google.protobuf.ProtocolStringListgetClientTagsList()Optional.booleangetContinueOnFailure()Optional.static TrinoJobgetDefaultInstance()TrinoJobgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()LoggingConfiggetLoggingConfig()Optional.LoggingConfigOrBuildergetLoggingConfigOrBuilder()Optional.StringgetOutputFormat()Optional.com.google.protobuf.ByteStringgetOutputFormatBytes()Optional.com.google.protobuf.Parser<TrinoJob>getParserForType()Map<String,String>getProperties()Deprecated.intgetPropertiesCount()Optional.Map<String,String>getPropertiesMap()Optional.StringgetPropertiesOrDefault(String key, String defaultValue)Optional.StringgetPropertiesOrThrow(String key)Optional.TrinoJob.QueriesCasegetQueriesCase()StringgetQueryFileUri()The HCFS URI of the script that contains SQL queries.com.google.protobuf.ByteStringgetQueryFileUriBytes()The HCFS URI of the script that contains SQL queries.QueryListgetQueryList()A list of queries.QueryListOrBuildergetQueryListOrBuilder()A list of queries.intgetSerializedSize()inthashCode()booleanhasLoggingConfig()Optional.booleanhasQueryFileUri()The HCFS URI of the script that contains SQL queries.booleanhasQueryList()A list of queries.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static TrinoJob.BuildernewBuilder()static TrinoJob.BuildernewBuilder(TrinoJob prototype)TrinoJob.BuildernewBuilderForType()protected TrinoJob.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TrinoJobparseDelimitedFrom(InputStream input)static TrinoJobparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TrinoJobparseFrom(byte[] data)static TrinoJobparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TrinoJobparseFrom(com.google.protobuf.ByteString data)static TrinoJobparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TrinoJobparseFrom(com.google.protobuf.CodedInputStream input)static TrinoJobparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TrinoJobparseFrom(InputStream input)static TrinoJobparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TrinoJobparseFrom(ByteBuffer data)static TrinoJobparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TrinoJob>parser()TrinoJob.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
QUERY_FILE_URI_FIELD_NUMBER
public static final int QUERY_FILE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_LIST_FIELD_NUMBER
public static final int QUERY_LIST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTINUE_ON_FAILURE_FIELD_NUMBER
public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_FORMAT_FIELD_NUMBER
public static final int OUTPUT_FORMAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLIENT_TAGS_FIELD_NUMBER
public static final int CLIENT_TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOGGING_CONFIG_FIELD_NUMBER
public static final int LOGGING_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getQueriesCase
public TrinoJob.QueriesCase getQueriesCase()
- Specified by:
getQueriesCasein interfaceTrinoJobOrBuilder
-
hasQueryFileUri
public boolean hasQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;- Specified by:
hasQueryFileUriin interfaceTrinoJobOrBuilder- Returns:
- Whether the queryFileUri field is set.
-
getQueryFileUri
public String getQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;- Specified by:
getQueryFileUriin interfaceTrinoJobOrBuilder- Returns:
- The queryFileUri.
-
getQueryFileUriBytes
public com.google.protobuf.ByteString getQueryFileUriBytes()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;- Specified by:
getQueryFileUriBytesin interfaceTrinoJobOrBuilder- Returns:
- The bytes for queryFileUri.
-
hasQueryList
public boolean hasQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;- Specified by:
hasQueryListin interfaceTrinoJobOrBuilder- Returns:
- Whether the queryList field is set.
-
getQueryList
public QueryList getQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;- Specified by:
getQueryListin interfaceTrinoJobOrBuilder- Returns:
- The queryList.
-
getQueryListOrBuilder
public QueryListOrBuilder getQueryListOrBuilder()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;- Specified by:
getQueryListOrBuilderin interfaceTrinoJobOrBuilder
-
getContinueOnFailure
public 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];- Specified by:
getContinueOnFailurein interfaceTrinoJobOrBuilder- Returns:
- The continueOnFailure.
-
getOutputFormat
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];- Specified by:
getOutputFormatin interfaceTrinoJobOrBuilder- Returns:
- The outputFormat.
-
getOutputFormatBytes
public 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];- Specified by:
getOutputFormatBytesin interfaceTrinoJobOrBuilder- Returns:
- The bytes for outputFormat.
-
getClientTagsList
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];- Specified by:
getClientTagsListin interfaceTrinoJobOrBuilder- Returns:
- A list containing the clientTags.
-
getClientTagsCount
public int getClientTagsCount()
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getClientTagsCountin interfaceTrinoJobOrBuilder- Returns:
- The count of clientTags.
-
getClientTags
public String getClientTags(int index)
Optional. Trino client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getClientTagsin interfaceTrinoJobOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The clientTags at the given index.
-
getClientTagsBytes
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];- Specified by:
getClientTagsBytesin interfaceTrinoJobOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the clientTags at the given index.
-
getPropertiesCount
public int getPropertiesCount()
Description copied from interface: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];- Specified by:
getPropertiesCountin interfaceTrinoJobOrBuilder
-
containsProperties
public 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];- Specified by:
containsPropertiesin interfaceTrinoJobOrBuilder
-
getProperties
@Deprecated public Map<String,String> getProperties()
Deprecated.UsegetPropertiesMap()instead.- Specified by:
getPropertiesin interfaceTrinoJobOrBuilder
-
getPropertiesMap
public 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];- Specified by:
getPropertiesMapin interfaceTrinoJobOrBuilder
-
getPropertiesOrDefault
public 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];- Specified by:
getPropertiesOrDefaultin interfaceTrinoJobOrBuilder
-
getPropertiesOrThrow
public 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];- Specified by:
getPropertiesOrThrowin interfaceTrinoJobOrBuilder
-
hasLoggingConfig
public boolean hasLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasLoggingConfigin interfaceTrinoJobOrBuilder- Returns:
- Whether the loggingConfig field is set.
-
getLoggingConfig
public LoggingConfig getLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLoggingConfigin interfaceTrinoJobOrBuilder- Returns:
- The loggingConfig.
-
getLoggingConfigOrBuilder
public LoggingConfigOrBuilder getLoggingConfigOrBuilder()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLoggingConfigOrBuilderin interfaceTrinoJobOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TrinoJob parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TrinoJob parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TrinoJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TrinoJob parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TrinoJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TrinoJob parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TrinoJob parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TrinoJob parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TrinoJob parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TrinoJob parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TrinoJob parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TrinoJob parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TrinoJob.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TrinoJob.Builder newBuilder()
-
newBuilder
public static TrinoJob.Builder newBuilder(TrinoJob prototype)
-
toBuilder
public TrinoJob.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TrinoJob.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TrinoJob getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TrinoJob> parser()
-
getParserForType
public com.google.protobuf.Parser<TrinoJob> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TrinoJob getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-