public final class PrestoJob extends GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
PrestoJob.Builder
A Dataproc job for running [Presto](https://prestosql.io/) queries.
|
static class |
PrestoJob.QueriesCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CLIENT_TAGS_FIELD_NUMBER |
static int |
CONTINUE_ON_FAILURE_FIELD_NUMBER |
static int |
LOGGING_CONFIG_FIELD_NUMBER |
static int |
OUTPUT_FORMAT_FIELD_NUMBER |
static int |
PROPERTIES_FIELD_NUMBER |
static int |
QUERY_FILE_URI_FIELD_NUMBER |
static int |
QUERY_LIST_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int QUERY_FILE_URI_FIELD_NUMBER
public static final int QUERY_LIST_FIELD_NUMBER
public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER
public static final int OUTPUT_FORMAT_FIELD_NUMBER
public static final int CLIENT_TAGS_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
public static final int LOGGING_CONFIG_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public PrestoJob.QueriesCase getQueriesCase()
getQueriesCase
in interface PrestoJobOrBuilder
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 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 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 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 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 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 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 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 boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static PrestoJob parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PrestoJob parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PrestoJob parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PrestoJob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PrestoJob parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PrestoJob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PrestoJob parseFrom(InputStream input) throws IOException
IOException
public static PrestoJob parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PrestoJob parseDelimitedFrom(InputStream input) throws IOException
IOException
public static PrestoJob parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PrestoJob parseFrom(CodedInputStream input) throws IOException
IOException
public static PrestoJob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public PrestoJob.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static PrestoJob.Builder newBuilder()
public static PrestoJob.Builder newBuilder(PrestoJob prototype)
public PrestoJob.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected PrestoJob.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static PrestoJob getDefaultInstance()
public Parser<PrestoJob> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public PrestoJob getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.