public static final class HadoopJob.Builder extends GeneratedMessageV3.Builder<HadoopJob.Builder> implements HadoopJobOrBuilder
A Cloud Dataproc job for running [Apache Hadoop MapReduce](https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on [Apache Hadoop YARN](https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).Protobuf type
google.cloud.dataproc.v1.HadoopJob
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public HadoopJob.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public HadoopJob getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public HadoopJob build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public HadoopJob buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public HadoopJob.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public HadoopJob.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public HadoopJob.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public HadoopJob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public HadoopJob.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public HadoopJob.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public HadoopJob.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<HadoopJob.Builder>
public HadoopJob.Builder mergeFrom(HadoopJob other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public HadoopJob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<HadoopJob.Builder>
java.io.IOException
public HadoopJob.DriverCase getDriverCase()
getDriverCase
in interface HadoopJobOrBuilder
public HadoopJob.Builder clearDriver()
public java.lang.String getMainJarFileUri()
The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
string main_jar_file_uri = 1;
getMainJarFileUri
in interface HadoopJobOrBuilder
public ByteString getMainJarFileUriBytes()
The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
string main_jar_file_uri = 1;
getMainJarFileUriBytes
in interface HadoopJobOrBuilder
public HadoopJob.Builder setMainJarFileUri(java.lang.String value)
The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
string main_jar_file_uri = 1;
public HadoopJob.Builder clearMainJarFileUri()
The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
string main_jar_file_uri = 1;
public HadoopJob.Builder setMainJarFileUriBytes(ByteString value)
The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
string main_jar_file_uri = 1;
public java.lang.String getMainClass()
The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in `jar_file_uris`.
string main_class = 2;
getMainClass
in interface HadoopJobOrBuilder
public ByteString getMainClassBytes()
The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in `jar_file_uris`.
string main_class = 2;
getMainClassBytes
in interface HadoopJobOrBuilder
public HadoopJob.Builder setMainClass(java.lang.String value)
The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in `jar_file_uris`.
string main_class = 2;
public HadoopJob.Builder clearMainClass()
The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in `jar_file_uris`.
string main_class = 2;
public HadoopJob.Builder setMainClassBytes(ByteString value)
The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in `jar_file_uris`.
string main_class = 2;
public ProtocolStringList getArgsList()
Optional. The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;
getArgsList
in interface HadoopJobOrBuilder
public int getArgsCount()
Optional. The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;
getArgsCount
in interface HadoopJobOrBuilder
public java.lang.String getArgs(int index)
Optional. The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;
getArgs
in interface HadoopJobOrBuilder
public ByteString getArgsBytes(int index)
Optional. The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;
getArgsBytes
in interface HadoopJobOrBuilder
public HadoopJob.Builder setArgs(int index, java.lang.String value)
Optional. The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;
public HadoopJob.Builder addArgs(java.lang.String value)
Optional. The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;
public HadoopJob.Builder addAllArgs(java.lang.Iterable<java.lang.String> values)
Optional. The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;
public HadoopJob.Builder clearArgs()
Optional. The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;
public HadoopJob.Builder addArgsBytes(ByteString value)
Optional. The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;
public ProtocolStringList getJarFileUrisList()
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
getJarFileUrisList
in interface HadoopJobOrBuilder
public int getJarFileUrisCount()
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
getJarFileUrisCount
in interface HadoopJobOrBuilder
public java.lang.String getJarFileUris(int index)
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
getJarFileUris
in interface HadoopJobOrBuilder
public ByteString getJarFileUrisBytes(int index)
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
getJarFileUrisBytes
in interface HadoopJobOrBuilder
public HadoopJob.Builder setJarFileUris(int index, java.lang.String value)
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
public HadoopJob.Builder addJarFileUris(java.lang.String value)
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
public HadoopJob.Builder addAllJarFileUris(java.lang.Iterable<java.lang.String> values)
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
public HadoopJob.Builder clearJarFileUris()
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
public HadoopJob.Builder addJarFileUrisBytes(ByteString value)
Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
repeated string jar_file_uris = 4;
public ProtocolStringList getFileUrisList()
Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;
getFileUrisList
in interface HadoopJobOrBuilder
public int getFileUrisCount()
Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;
getFileUrisCount
in interface HadoopJobOrBuilder
public java.lang.String getFileUris(int index)
Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;
getFileUris
in interface HadoopJobOrBuilder
public ByteString getFileUrisBytes(int index)
Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;
getFileUrisBytes
in interface HadoopJobOrBuilder
public HadoopJob.Builder setFileUris(int index, java.lang.String value)
Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;
public HadoopJob.Builder addFileUris(java.lang.String value)
Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;
public HadoopJob.Builder addAllFileUris(java.lang.Iterable<java.lang.String> values)
Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;
public HadoopJob.Builder clearFileUris()
Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;
public HadoopJob.Builder addFileUrisBytes(ByteString value)
Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;
public ProtocolStringList getArchiveUrisList()
Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
repeated string archive_uris = 6;
getArchiveUrisList
in interface HadoopJobOrBuilder
public int getArchiveUrisCount()
Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
repeated string archive_uris = 6;
getArchiveUrisCount
in interface HadoopJobOrBuilder
public java.lang.String getArchiveUris(int index)
Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
repeated string archive_uris = 6;
getArchiveUris
in interface HadoopJobOrBuilder
public ByteString getArchiveUrisBytes(int index)
Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
repeated string archive_uris = 6;
getArchiveUrisBytes
in interface HadoopJobOrBuilder
public HadoopJob.Builder setArchiveUris(int index, java.lang.String value)
Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
repeated string archive_uris = 6;
public HadoopJob.Builder addArchiveUris(java.lang.String value)
Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
repeated string archive_uris = 6;
public HadoopJob.Builder addAllArchiveUris(java.lang.Iterable<java.lang.String> values)
Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
repeated string archive_uris = 6;
public HadoopJob.Builder clearArchiveUris()
Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
repeated string archive_uris = 6;
public HadoopJob.Builder addArchiveUrisBytes(ByteString value)
Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
repeated string archive_uris = 6;
public int getPropertiesCount()
HadoopJobOrBuilder
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
getPropertiesCount
in interface HadoopJobOrBuilder
public boolean containsProperties(java.lang.String key)
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
containsProperties
in interface HadoopJobOrBuilder
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getProperties()
getPropertiesMap()
instead.getProperties
in interface HadoopJobOrBuilder
public java.util.Map<java.lang.String,java.lang.String> getPropertiesMap()
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
getPropertiesMap
in interface HadoopJobOrBuilder
public java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue)
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
getPropertiesOrDefault
in interface HadoopJobOrBuilder
public java.lang.String getPropertiesOrThrow(java.lang.String key)
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
getPropertiesOrThrow
in interface HadoopJobOrBuilder
public HadoopJob.Builder clearProperties()
public HadoopJob.Builder removeProperties(java.lang.String key)
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableProperties()
public HadoopJob.Builder putProperties(java.lang.String key, java.lang.String value)
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
public HadoopJob.Builder putAllProperties(java.util.Map<java.lang.String,java.lang.String> values)
Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
map<string, string> properties = 7;
public boolean hasLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
hasLoggingConfig
in interface HadoopJobOrBuilder
public LoggingConfig getLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
getLoggingConfig
in interface HadoopJobOrBuilder
public HadoopJob.Builder setLoggingConfig(LoggingConfig value)
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
public HadoopJob.Builder setLoggingConfig(LoggingConfig.Builder builderForValue)
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
public HadoopJob.Builder mergeLoggingConfig(LoggingConfig value)
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
public HadoopJob.Builder clearLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
public LoggingConfig.Builder getLoggingConfigBuilder()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
public LoggingConfigOrBuilder getLoggingConfigOrBuilder()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;
getLoggingConfigOrBuilder
in interface HadoopJobOrBuilder
public final HadoopJob.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<HadoopJob.Builder>
public final HadoopJob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<HadoopJob.Builder>