public static final class PrestoJob.Builder extends 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public PrestoJob.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public PrestoJob getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public PrestoJob build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public PrestoJob buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public PrestoJob.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public PrestoJob.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public PrestoJob.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public PrestoJob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public PrestoJob.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public PrestoJob.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public PrestoJob.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<PrestoJob.Builder>
public PrestoJob.Builder mergeFrom(PrestoJob other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public PrestoJob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<PrestoJob.Builder>
IOException
public PrestoJob.QueriesCase getQueriesCase()
getQueriesCase
in interface PrestoJobOrBuilder
public PrestoJob.Builder clearQueries()
public boolean hasQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;
hasQueryFileUri
in interface PrestoJobOrBuilder
public String getQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;
getQueryFileUri
in interface PrestoJobOrBuilder
public ByteString getQueryFileUriBytes()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;
getQueryFileUriBytes
in interface PrestoJobOrBuilder
public 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(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 PrestoJobOrBuilder
public QueryList getQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;
getQueryList
in interface PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
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];
getContinueOnFailure
in interface PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
public 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(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 ProtocolStringList getClientTagsList()
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];
getClientTagsList
in interface PrestoJobOrBuilder
public int getClientTagsCount()
Optional. Presto client tags to attach to this query
repeated string client_tags = 5 [(.google.api.field_behavior) = OPTIONAL];
getClientTagsCount
in interface PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
index
- The index of the element to return.public 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 PrestoJobOrBuilder
index
- 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(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()
PrestoJobOrBuilder
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];
getPropertiesCount
in interface PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
public 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 PrestoJobOrBuilder
public final PrestoJob.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
public final PrestoJob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<PrestoJob.Builder>
Copyright © 2022 Google LLC. All rights reserved.