public final class PrestoJob extends com.google.protobuf.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 |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsProperties(String key)
Optional.
|
boolean |
equals(Object obj) |
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.
|
static PrestoJob |
getDefaultInstance() |
PrestoJob |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
LoggingConfig |
getLoggingConfig()
Optional.
|
LoggingConfigOrBuilder |
getLoggingConfigOrBuilder()
Optional.
|
String |
getOutputFormat()
Optional.
|
com.google.protobuf.ByteString |
getOutputFormatBytes()
Optional.
|
com.google.protobuf.Parser<PrestoJob> |
getParserForType() |
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.
|
QueryListOrBuilder |
getQueryListOrBuilder()
A list of queries.
|
int |
getSerializedSize() |
int |
hashCode() |
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) |
boolean |
isInitialized() |
static PrestoJob.Builder |
newBuilder() |
static PrestoJob.Builder |
newBuilder(PrestoJob prototype) |
PrestoJob.Builder |
newBuilderForType() |
protected PrestoJob.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static PrestoJob |
parseDelimitedFrom(InputStream input) |
static PrestoJob |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PrestoJob |
parseFrom(byte[] data) |
static PrestoJob |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PrestoJob |
parseFrom(ByteBuffer data) |
static PrestoJob |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PrestoJob |
parseFrom(com.google.protobuf.ByteString data) |
static PrestoJob |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PrestoJob |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PrestoJob |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PrestoJob |
parseFrom(InputStream input) |
static PrestoJob |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PrestoJob> |
parser() |
PrestoJob.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public PrestoJob.QueriesCase getQueriesCase()
getQueriesCase in interface PrestoJobOrBuilderpublic 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 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 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 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 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 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 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 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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static PrestoJob parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PrestoJob parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PrestoJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PrestoJob parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PrestoJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PrestoJob parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PrestoJob parseFrom(InputStream input) throws IOException
IOExceptionpublic static PrestoJob parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PrestoJob parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PrestoJob parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PrestoJob parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PrestoJob parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PrestoJob.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PrestoJob.Builder newBuilder()
public static PrestoJob.Builder newBuilder(PrestoJob prototype)
public PrestoJob.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PrestoJob.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PrestoJob getDefaultInstance()
public static com.google.protobuf.Parser<PrestoJob> parser()
public com.google.protobuf.Parser<PrestoJob> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PrestoJob getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.