Package com.google.cloud.dataproc.v1
Class HiveJob
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dataproc.v1.HiveJob
-
- All Implemented Interfaces:
HiveJobOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class HiveJob extends com.google.protobuf.GeneratedMessageV3 implements HiveJobOrBuilder
A Dataproc job for running [Apache Hive](https://hive.apache.org/) queries on YARN.
Protobuf typegoogle.cloud.dataproc.v1.HiveJob- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHiveJob.BuilderA Dataproc job for running [Apache Hive](https://hive.apache.org/) queries on YARN.static classHiveJob.QueriesCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCONTINUE_ON_FAILURE_FIELD_NUMBERstatic intJAR_FILE_URIS_FIELD_NUMBERstatic intPROPERTIES_FIELD_NUMBERstatic intQUERY_FILE_URI_FIELD_NUMBERstatic intQUERY_LIST_FIELD_NUMBERstatic intSCRIPT_VARIABLES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsProperties(String key)Optional.booleancontainsScriptVariables(String key)Optional.booleanequals(Object obj)booleangetContinueOnFailure()Optional.static HiveJobgetDefaultInstance()HiveJobgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetJarFileUris(int index)Optional.com.google.protobuf.ByteStringgetJarFileUrisBytes(int index)Optional.intgetJarFileUrisCount()Optional.com.google.protobuf.ProtocolStringListgetJarFileUrisList()Optional.com.google.protobuf.Parser<HiveJob>getParserForType()Map<String,String>getProperties()Deprecated.intgetPropertiesCount()Optional.Map<String,String>getPropertiesMap()Optional.StringgetPropertiesOrDefault(String key, String defaultValue)Optional.StringgetPropertiesOrThrow(String key)Optional.HiveJob.QueriesCasegetQueriesCase()StringgetQueryFileUri()The HCFS URI of the script that contains Hive queries.com.google.protobuf.ByteStringgetQueryFileUriBytes()The HCFS URI of the script that contains Hive queries.QueryListgetQueryList()A list of queries.QueryListOrBuildergetQueryListOrBuilder()A list of queries.Map<String,String>getScriptVariables()Deprecated.intgetScriptVariablesCount()Optional.Map<String,String>getScriptVariablesMap()Optional.StringgetScriptVariablesOrDefault(String key, String defaultValue)Optional.StringgetScriptVariablesOrThrow(String key)Optional.intgetSerializedSize()inthashCode()booleanhasQueryFileUri()The HCFS URI of the script that contains Hive queries.booleanhasQueryList()A list of queries.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static HiveJob.BuildernewBuilder()static HiveJob.BuildernewBuilder(HiveJob prototype)HiveJob.BuildernewBuilderForType()protected HiveJob.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static HiveJobparseDelimitedFrom(InputStream input)static HiveJobparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HiveJobparseFrom(byte[] data)static HiveJobparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HiveJobparseFrom(com.google.protobuf.ByteString data)static HiveJobparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HiveJobparseFrom(com.google.protobuf.CodedInputStream input)static HiveJobparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HiveJobparseFrom(InputStream input)static HiveJobparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HiveJobparseFrom(ByteBuffer data)static HiveJobparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<HiveJob>parser()HiveJob.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
QUERY_FILE_URI_FIELD_NUMBER
public static final int QUERY_FILE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_LIST_FIELD_NUMBER
public static final int QUERY_LIST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTINUE_ON_FAILURE_FIELD_NUMBER
public static final int CONTINUE_ON_FAILURE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCRIPT_VARIABLES_FIELD_NUMBER
public static final int SCRIPT_VARIABLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
JAR_FILE_URIS_FIELD_NUMBER
public static final int JAR_FILE_URIS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getQueriesCase
public HiveJob.QueriesCase getQueriesCase()
- Specified by:
getQueriesCasein interfaceHiveJobOrBuilder
-
hasQueryFileUri
public boolean hasQueryFileUri()
The HCFS URI of the script that contains Hive queries.
string query_file_uri = 1;- Specified by:
hasQueryFileUriin interfaceHiveJobOrBuilder- Returns:
- Whether the queryFileUri field is set.
-
getQueryFileUri
public String getQueryFileUri()
The HCFS URI of the script that contains Hive queries.
string query_file_uri = 1;- Specified by:
getQueryFileUriin interfaceHiveJobOrBuilder- Returns:
- The queryFileUri.
-
getQueryFileUriBytes
public com.google.protobuf.ByteString getQueryFileUriBytes()
The HCFS URI of the script that contains Hive queries.
string query_file_uri = 1;- Specified by:
getQueryFileUriBytesin interfaceHiveJobOrBuilder- Returns:
- The bytes for queryFileUri.
-
hasQueryList
public boolean hasQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;- Specified by:
hasQueryListin interfaceHiveJobOrBuilder- Returns:
- Whether the queryList field is set.
-
getQueryList
public QueryList getQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;- Specified by:
getQueryListin interfaceHiveJobOrBuilder- Returns:
- The queryList.
-
getQueryListOrBuilder
public QueryListOrBuilder getQueryListOrBuilder()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;- Specified by:
getQueryListOrBuilderin interfaceHiveJobOrBuilder
-
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];- Specified by:
getContinueOnFailurein interfaceHiveJobOrBuilder- Returns:
- The continueOnFailure.
-
getScriptVariablesCount
public int getScriptVariablesCount()
Description copied from interface:HiveJobOrBuilderOptional. Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`).
map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getScriptVariablesCountin interfaceHiveJobOrBuilder
-
containsScriptVariables
public boolean containsScriptVariables(String key)
Optional. Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`).
map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsScriptVariablesin interfaceHiveJobOrBuilder
-
getScriptVariables
@Deprecated public Map<String,String> getScriptVariables()
Deprecated.UsegetScriptVariablesMap()instead.- Specified by:
getScriptVariablesin interfaceHiveJobOrBuilder
-
getScriptVariablesMap
public Map<String,String> getScriptVariablesMap()
Optional. Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`).
map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getScriptVariablesMapin interfaceHiveJobOrBuilder
-
getScriptVariablesOrDefault
public String getScriptVariablesOrDefault(String key, String defaultValue)
Optional. Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`).
map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getScriptVariablesOrDefaultin interfaceHiveJobOrBuilder
-
getScriptVariablesOrThrow
public String getScriptVariablesOrThrow(String key)
Optional. Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`).
map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getScriptVariablesOrThrowin interfaceHiveJobOrBuilder
-
getPropertiesCount
public int getPropertiesCount()
Description copied from interface:HiveJobOrBuilderOptional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`, /etc/hive/conf/hive-site.xml, and classes in user code.
map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesCountin interfaceHiveJobOrBuilder
-
containsProperties
public boolean containsProperties(String key)
Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`, /etc/hive/conf/hive-site.xml, and classes in user code.
map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsPropertiesin interfaceHiveJobOrBuilder
-
getProperties
@Deprecated public Map<String,String> getProperties()
Deprecated.UsegetPropertiesMap()instead.- Specified by:
getPropertiesin interfaceHiveJobOrBuilder
-
getPropertiesMap
public Map<String,String> getPropertiesMap()
Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`, /etc/hive/conf/hive-site.xml, and classes in user code.
map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesMapin interfaceHiveJobOrBuilder
-
getPropertiesOrDefault
public String getPropertiesOrDefault(String key, String defaultValue)
Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`, /etc/hive/conf/hive-site.xml, and classes in user code.
map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesOrDefaultin interfaceHiveJobOrBuilder
-
getPropertiesOrThrow
public String getPropertiesOrThrow(String key)
Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`, /etc/hive/conf/hive-site.xml, and classes in user code.
map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPropertiesOrThrowin interfaceHiveJobOrBuilder
-
getJarFileUrisList
public com.google.protobuf.ProtocolStringList getJarFileUrisList()
Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getJarFileUrisListin interfaceHiveJobOrBuilder- Returns:
- A list containing the jarFileUris.
-
getJarFileUrisCount
public int getJarFileUrisCount()
Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getJarFileUrisCountin interfaceHiveJobOrBuilder- Returns:
- The count of jarFileUris.
-
getJarFileUris
public String getJarFileUris(int index)
Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getJarFileUrisin interfaceHiveJobOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The jarFileUris at the given index.
-
getJarFileUrisBytes
public com.google.protobuf.ByteString getJarFileUrisBytes(int index)
Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getJarFileUrisBytesin interfaceHiveJobOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the jarFileUris at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HiveJob parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HiveJob parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HiveJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HiveJob parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HiveJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HiveJob parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HiveJob parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HiveJob parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HiveJob parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HiveJob parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static HiveJob parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HiveJob parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public HiveJob.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HiveJob.Builder newBuilder()
-
newBuilder
public static HiveJob.Builder newBuilder(HiveJob prototype)
-
toBuilder
public HiveJob.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HiveJob.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HiveJob getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HiveJob> parser()
-
getParserForType
public com.google.protobuf.Parser<HiveJob> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HiveJob getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-