public static final class PrestoJob.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PrestoJob.Builder> implements PrestoJobOrBuilder
A Dataproc job for running [Presto](https://prestosql.io/) queries. **IMPORTANT**: The [Dataproc Presto Optional Component](https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster.Protobuf type
google.cloud.dataproc.v1.PrestoJob| Modifier and Type | Method and Description |
|---|---|
PrestoJob.Builder |
addAllClientTags(Iterable<String> values)
Optional.
|
PrestoJob.Builder |
addClientTags(String value)
Optional.
|
PrestoJob.Builder |
addClientTagsBytes(com.google.protobuf.ByteString value)
Optional.
|
PrestoJob.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PrestoJob |
build() |
PrestoJob |
buildPartial() |
PrestoJob.Builder |
clear() |
PrestoJob.Builder |
clearClientTags()
Optional.
|
PrestoJob.Builder |
clearContinueOnFailure()
Optional.
|
PrestoJob.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PrestoJob.Builder |
clearLoggingConfig()
Optional.
|
PrestoJob.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PrestoJob.Builder |
clearOutputFormat()
Optional.
|
PrestoJob.Builder |
clearProperties() |
PrestoJob.Builder |
clearQueries() |
PrestoJob.Builder |
clearQueryFileUri()
The HCFS URI of the script that contains SQL queries.
|
PrestoJob.Builder |
clearQueryList()
A list of queries.
|
PrestoJob.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.
|
PrestoJob |
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.
|
PrestoJob.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() |
PrestoJob.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PrestoJob.Builder |
mergeFrom(com.google.protobuf.Message other) |
PrestoJob.Builder |
mergeFrom(PrestoJob other) |
PrestoJob.Builder |
mergeLoggingConfig(LoggingConfig value)
Optional.
|
PrestoJob.Builder |
mergeQueryList(QueryList value)
A list of queries.
|
PrestoJob.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PrestoJob.Builder |
putAllProperties(Map<String,String> values)
Optional.
|
PrestoJob.Builder |
putProperties(String key,
String value)
Optional.
|
PrestoJob.Builder |
removeProperties(String key)
Optional.
|
PrestoJob.Builder |
setClientTags(int index,
String value)
Optional.
|
PrestoJob.Builder |
setContinueOnFailure(boolean value)
Optional.
|
PrestoJob.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PrestoJob.Builder |
setLoggingConfig(LoggingConfig.Builder builderForValue)
Optional.
|
PrestoJob.Builder |
setLoggingConfig(LoggingConfig value)
Optional.
|
PrestoJob.Builder |
setOutputFormat(String value)
Optional.
|
PrestoJob.Builder |
setOutputFormatBytes(com.google.protobuf.ByteString value)
Optional.
|
PrestoJob.Builder |
setQueryFileUri(String value)
The HCFS URI of the script that contains SQL queries.
|
PrestoJob.Builder |
setQueryFileUriBytes(com.google.protobuf.ByteString value)
The HCFS URI of the script that contains SQL queries.
|
PrestoJob.Builder |
setQueryList(QueryList.Builder builderForValue)
A list of queries.
|
PrestoJob.Builder |
setQueryList(QueryList value)
A list of queries.
|
PrestoJob.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PrestoJob.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<PrestoJob.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<PrestoJob.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PrestoJob.Builder>public PrestoJob.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PrestoJob.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<PrestoJob.Builder>public PrestoJob getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PrestoJob build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PrestoJob buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PrestoJob.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PrestoJob.Builder>public PrestoJob.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<PrestoJob.Builder>public PrestoJob.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PrestoJob.Builder>public PrestoJob.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PrestoJob.Builder>public PrestoJob.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<PrestoJob.Builder>public PrestoJob.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<PrestoJob.Builder>public PrestoJob.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PrestoJob.Builder>public PrestoJob.Builder mergeFrom(PrestoJob other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PrestoJob.Builder>public PrestoJob.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<PrestoJob.Builder>IOExceptionpublic PrestoJob.QueriesCase getQueriesCase()
getQueriesCase in interface PrestoJobOrBuilderpublic PrestoJob.Builder clearQueries()
public boolean hasQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;hasQueryFileUri in interface PrestoJobOrBuilderpublic String getQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;getQueryFileUri in interface PrestoJobOrBuilderpublic com.google.protobuf.ByteString getQueryFileUriBytes()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;getQueryFileUriBytes in interface PrestoJobOrBuilderpublic PrestoJob.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 PrestoJob.Builder clearQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;public PrestoJob.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 PrestoJobOrBuilderpublic QueryList getQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;getQueryList in interface PrestoJobOrBuilderpublic PrestoJob.Builder setQueryList(QueryList value)
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;public PrestoJob.Builder setQueryList(QueryList.Builder builderForValue)
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;public PrestoJob.Builder mergeQueryList(QueryList value)
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;public PrestoJob.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 PrestoJobOrBuilderpublic 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 PrestoJobOrBuilderpublic PrestoJob.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 PrestoJob.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 Presto documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];getOutputFormat in interface PrestoJobOrBuilderpublic com.google.protobuf.ByteString getOutputFormatBytes()
Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];getOutputFormatBytes in interface PrestoJobOrBuilderpublic PrestoJob.Builder setOutputFormat(String value)
Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];value - The outputFormat to set.public PrestoJob.Builder clearOutputFormat()
Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
string output_format = 4 [(.google.api.field_behavior) = OPTIONAL];public PrestoJob.Builder setOutputFormatBytes(com.google.protobuf.ByteString value)
Optional. The format in which query output will be displayed. See the Presto 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. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];getClientTagsList in interface PrestoJobOrBuilderpublic int getClientTagsCount()
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];getClientTagsCount in interface PrestoJobOrBuilderpublic String getClientTags(int index)
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];getClientTags in interface PrestoJobOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getClientTagsBytes(int index)
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];getClientTagsBytes in interface PrestoJobOrBuilderindex - The index of the value to return.public PrestoJob.Builder setClientTags(int index, String value)
Optional. Presto 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 PrestoJob.Builder addClientTags(String value)
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];value - The clientTags to add.public PrestoJob.Builder addAllClientTags(Iterable<String> values)
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];values - The clientTags to add.public PrestoJob.Builder clearClientTags()
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];public PrestoJob.Builder addClientTagsBytes(com.google.protobuf.ByteString value)
Optional. Presto 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()
PrestoJobOrBuilderOptional. A mapping of property names to values. Used to set Presto [session properties](https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
getPropertiesCount in interface PrestoJobOrBuilderpublic boolean containsProperties(String key)
Optional. A mapping of property names to values. Used to set Presto [session properties](https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
containsProperties in interface PrestoJobOrBuilder@Deprecated public Map<String,String> getProperties()
getPropertiesMap() instead.getProperties in interface PrestoJobOrBuilderpublic Map<String,String> getPropertiesMap()
Optional. A mapping of property names to values. Used to set Presto [session properties](https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
getPropertiesMap in interface PrestoJobOrBuilderpublic String getPropertiesOrDefault(String key, String defaultValue)
Optional. A mapping of property names to values. Used to set Presto [session properties](https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
getPropertiesOrDefault in interface PrestoJobOrBuilderpublic String getPropertiesOrThrow(String key)
Optional. A mapping of property names to values. Used to set Presto [session properties](https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
getPropertiesOrThrow in interface PrestoJobOrBuilderpublic PrestoJob.Builder clearProperties()
public PrestoJob.Builder removeProperties(String key)
Optional. A mapping of property names to values. Used to set Presto [session properties](https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated public Map<String,String> getMutableProperties()
public PrestoJob.Builder putProperties(String key, String value)
Optional. A mapping of property names to values. Used to set Presto [session properties](https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
map<string, string> properties = 6 [(.google.api.field_behavior) = OPTIONAL];
public PrestoJob.Builder putAllProperties(Map<String,String> values)
Optional. A mapping of property names to values. Used to set Presto [session properties](https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto 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 PrestoJobOrBuilderpublic 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 PrestoJobOrBuilderpublic PrestoJob.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 PrestoJob.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 PrestoJob.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 PrestoJob.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 PrestoJobOrBuilderpublic final PrestoJob.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PrestoJob.Builder>public final PrestoJob.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PrestoJob.Builder>Copyright © 2024 Google LLC. All rights reserved.