Class TrinoJob.Builder (4.33.0)

public static final class TrinoJob.Builder extends GeneratedMessageV3.Builder<TrinoJob.Builder> 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 Methods

getDescriptor()

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

Methods

addAllClientTags(Iterable<String> values)

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

Parameter
NameDescription
valuesIterable<String>

The clientTags to add.

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

addClientTags(String value)

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

Parameter
NameDescription
valueString

The clientTags to add.

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

addClientTagsBytes(ByteString value)

public TrinoJob.Builder addClientTagsBytes(ByteString value)

Optional. Trino client tags to attach to this query

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

Parameter
NameDescription
valueByteString

The bytes of the clientTags to add.

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TrinoJob.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TrinoJob.Builder
Overrides

build()

public TrinoJob build()
Returns
TypeDescription
TrinoJob

buildPartial()

public TrinoJob buildPartial()
Returns
TypeDescription
TrinoJob

clear()

public TrinoJob.Builder clear()
Returns
TypeDescription
TrinoJob.Builder
Overrides

clearClientTags()

public TrinoJob.Builder clearClientTags()

Optional. Trino client tags to attach to this query

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

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

clearContinueOnFailure()

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

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TrinoJob.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TrinoJob.Builder
Overrides

clearLoggingConfig()

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

Returns
TypeDescription
TrinoJob.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TrinoJob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TrinoJob.Builder
Overrides

clearOutputFormat()

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

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

clearProperties()

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

clearQueries()

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

clearQueryFileUri()

public TrinoJob.Builder clearQueryFileUri()

The HCFS URI of the script that contains SQL queries.

string query_file_uri = 1;

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

clearQueryList()

public TrinoJob.Builder clearQueryList()

A list of queries.

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

Returns
TypeDescription
TrinoJob.Builder

clone()

public TrinoJob.Builder clone()
Returns
TypeDescription
TrinoJob.Builder
Overrides

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

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getLoggingConfigBuilder()

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

Returns
TypeDescription
LoggingConfig.Builder

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

getMutableProperties() (deprecated)

public Map<String,String> getMutableProperties()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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.

getProperties() (deprecated)

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.

getQueryListBuilder()

public QueryList.Builder getQueryListBuilder()

A list of queries.

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

Returns
TypeDescription
QueryList.Builder

getQueryListOrBuilder()

public QueryListOrBuilder getQueryListOrBuilder()

A list of queries.

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

Returns
TypeDescription
QueryListOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TrinoJob other)

public TrinoJob.Builder mergeFrom(TrinoJob other)
Parameter
NameDescription
otherTrinoJob
Returns
TypeDescription
TrinoJob.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TrinoJob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrinoJob.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TrinoJob.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TrinoJob.Builder
Overrides

mergeLoggingConfig(LoggingConfig value)

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

Parameter
NameDescription
valueLoggingConfig
Returns
TypeDescription
TrinoJob.Builder

mergeQueryList(QueryList value)

public TrinoJob.Builder mergeQueryList(QueryList value)

A list of queries.

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

Parameter
NameDescription
valueQueryList
Returns
TypeDescription
TrinoJob.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TrinoJob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrinoJob.Builder
Overrides

putAllProperties(Map<String,String> values)

public TrinoJob.Builder putAllProperties(Map<String,String> values)

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
valuesMap<String,String>
Returns
TypeDescription
TrinoJob.Builder

putProperties(String key, String value)

public TrinoJob.Builder putProperties(String key, String value)

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
valueString
Returns
TypeDescription
TrinoJob.Builder

removeProperties(String key)

public TrinoJob.Builder removeProperties(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
TrinoJob.Builder

setClientTags(int index, String value)

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The clientTags to set.

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

setContinueOnFailure(boolean value)

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

Parameter
NameDescription
valueboolean

The continueOnFailure to set.

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TrinoJob.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TrinoJob.Builder
Overrides

setLoggingConfig(LoggingConfig value)

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

Parameter
NameDescription
valueLoggingConfig
Returns
TypeDescription
TrinoJob.Builder

setLoggingConfig(LoggingConfig.Builder builderForValue)

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

Parameter
NameDescription
builderForValueLoggingConfig.Builder
Returns
TypeDescription
TrinoJob.Builder

setOutputFormat(String value)

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

Parameter
NameDescription
valueString

The outputFormat to set.

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

setOutputFormatBytes(ByteString value)

public TrinoJob.Builder setOutputFormatBytes(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];

Parameter
NameDescription
valueByteString

The bytes for outputFormat to set.

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

setQueryFileUri(String value)

public TrinoJob.Builder setQueryFileUri(String value)

The HCFS URI of the script that contains SQL queries.

string query_file_uri = 1;

Parameter
NameDescription
valueString

The queryFileUri to set.

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

setQueryFileUriBytes(ByteString value)

public TrinoJob.Builder setQueryFileUriBytes(ByteString value)

The HCFS URI of the script that contains SQL queries.

string query_file_uri = 1;

Parameter
NameDescription
valueByteString

The bytes for queryFileUri to set.

Returns
TypeDescription
TrinoJob.Builder

This builder for chaining.

setQueryList(QueryList value)

public TrinoJob.Builder setQueryList(QueryList value)

A list of queries.

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

Parameter
NameDescription
valueQueryList
Returns
TypeDescription
TrinoJob.Builder

setQueryList(QueryList.Builder builderForValue)

public TrinoJob.Builder setQueryList(QueryList.Builder builderForValue)

A list of queries.

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

Parameter
NameDescription
builderForValueQueryList.Builder
Returns
TypeDescription
TrinoJob.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TrinoJob.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TrinoJob.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TrinoJob.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrinoJob.Builder
Overrides