Class TrinoJob (4.11.0)

public final class TrinoJob extends GeneratedMessageV3 implements TrinoJobOrBuilder

A Dataproc job for running Trino queries. IMPORTANT: The Dataproc Trino Optional Component must be enabled when the cluster is created to submit a Trino job to the cluster.

Protobuf type google.cloud.dataproc.v1.TrinoJob

Implements

TrinoJobOrBuilder

Static Fields

CLIENT_TAGS_FIELD_NUMBER

public static final int CLIENT_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

CONTINUE_ON_FAILURE_FIELD_NUMBER

public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER
Field Value
TypeDescription
int

LOGGING_CONFIG_FIELD_NUMBER

public static final int LOGGING_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

OUTPUT_FORMAT_FIELD_NUMBER

public static final int OUTPUT_FORMAT_FIELD_NUMBER
Field Value
TypeDescription
int

PROPERTIES_FIELD_NUMBER

public static final int PROPERTIES_FIELD_NUMBER
Field Value
TypeDescription
int

QUERY_FILE_URI_FIELD_NUMBER

public static final int QUERY_FILE_URI_FIELD_NUMBER
Field Value
TypeDescription
int

QUERY_LIST_FIELD_NUMBER

public static final int QUERY_LIST_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TrinoJob getDefaultInstance()
Returns
TypeDescription
TrinoJob

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TrinoJob.Builder newBuilder()
Returns
TypeDescription
TrinoJob.Builder

newBuilder(TrinoJob prototype)

public static TrinoJob.Builder newBuilder(TrinoJob prototype)
Parameter
NameDescription
prototypeTrinoJob
Returns
TypeDescription
TrinoJob.Builder

parseDelimitedFrom(InputStream input)

public static TrinoJob parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TrinoJob parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TrinoJob parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TrinoJob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TrinoJob parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TrinoJob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TrinoJob parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TrinoJob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TrinoJob parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TrinoJob parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TrinoJob parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TrinoJob parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrinoJob
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TrinoJob> parser()
Returns
TypeDescription
Parser<TrinoJob>

Methods

containsProperties(String key)

public boolean containsProperties(String key)

Optional. A mapping of property names to values. Used to set Trino session properties Equivalent to using the --session flag in the Trino CLI

map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getClientTags(int index)

public String getClientTags(int index)

Optional. Trino client tags to attach to this query

repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The clientTags at the given index.

getClientTagsBytes(int index)

public ByteString getClientTagsBytes(int index)

Optional. Trino client tags to attach to this query

repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the clientTags at the given index.

getClientTagsCount()

public int getClientTagsCount()

Optional. Trino client tags to attach to this query

repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of clientTags.

getClientTagsList()

public ProtocolStringList getClientTagsList()

Optional. Trino client tags to attach to this query

repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the clientTags.

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];

Returns
TypeDescription
boolean

The continueOnFailure.

getDefaultInstanceForType()

public TrinoJob getDefaultInstanceForType()
Returns
TypeDescription
TrinoJob

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];

Returns
TypeDescription
LoggingConfig

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];

Returns
TypeDescription
LoggingConfigOrBuilder

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];

Returns
TypeDescription
String

The outputFormat.

getOutputFormatBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for outputFormat.

getParserForType()

public Parser<TrinoJob> getParserForType()
Returns
TypeDescription
Parser<TrinoJob>
Overrides

getProperties()

public Map<String,String> getProperties()

Use #getPropertiesMap() instead.

Returns
TypeDescription
Map<String,String>

getPropertiesCount()

public int getPropertiesCount()

Optional. A mapping of property names to values. Used to set Trino session properties Equivalent to using the --session flag in the Trino CLI

map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getPropertiesMap()

public Map<String,String> getPropertiesMap()

Optional. A mapping of property names to values. Used to set Trino session properties Equivalent to using the --session flag in the Trino CLI

map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getPropertiesOrDefault(String key, String defaultValue)

public String getPropertiesOrDefault(String key, String defaultValue)

Optional. A mapping of property names to values. Used to set Trino session properties Equivalent to using the --session flag in the Trino CLI

map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getPropertiesOrThrow(String key)

public String getPropertiesOrThrow(String key)

Optional. A mapping of property names to values. Used to set Trino session properties Equivalent to using the --session flag in the Trino CLI

map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getQueriesCase()

public TrinoJob.QueriesCase getQueriesCase()
Returns
TypeDescription
TrinoJob.QueriesCase

getQueryFileUri()

public String getQueryFileUri()

The HCFS URI of the script that contains SQL queries.

string query_file_uri = 1;

Returns
TypeDescription
String

The queryFileUri.

getQueryFileUriBytes()

public ByteString getQueryFileUriBytes()

The HCFS URI of the script that contains SQL queries.

string query_file_uri = 1;

Returns
TypeDescription
ByteString

The bytes for queryFileUri.

getQueryList()

public QueryList getQueryList()

A list of queries.

.google.cloud.dataproc.v1.QueryList query_list = 2;

Returns
TypeDescription
QueryList

The queryList.

getQueryListOrBuilder()

public QueryListOrBuilder getQueryListOrBuilder()

A list of queries.

.google.cloud.dataproc.v1.QueryList query_list = 2;

Returns
TypeDescription
QueryListOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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];

Returns
TypeDescription
boolean

Whether the loggingConfig field is set.

hasQueryFileUri()

public boolean hasQueryFileUri()

The HCFS URI of the script that contains SQL queries.

string query_file_uri = 1;

Returns
TypeDescription
boolean

Whether the queryFileUri field is set.

hasQueryList()

public boolean hasQueryList()

A list of queries.

.google.cloud.dataproc.v1.QueryList query_list = 2;

Returns
TypeDescription
boolean

Whether the queryList field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TrinoJob.Builder newBuilderForType()
Returns
TypeDescription
TrinoJob.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TrinoJob.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TrinoJob.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TrinoJob.Builder toBuilder()
Returns
TypeDescription
TrinoJob.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException