Class DiagnoseClusterRequest.Builder (4.42.0)

public static final class DiagnoseClusterRequest.Builder extends GeneratedMessageV3.Builder<DiagnoseClusterRequest.Builder> implements DiagnoseClusterRequestOrBuilder

A request to collect cluster diagnostic information.

Protobuf type google.cloud.dataproc.v1.DiagnoseClusterRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllJobs(Iterable<String> values)

public DiagnoseClusterRequest.Builder addAllJobs(Iterable<String> values)

Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}

repeated string jobs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The jobs to add.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

addAllYarnApplicationIds(Iterable<String> values)

public DiagnoseClusterRequest.Builder addAllYarnApplicationIds(Iterable<String> values)

Optional. Specifies a list of yarn applications on which diagnosis is to be performed.

repeated string yarn_application_ids = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The yarnApplicationIds to add.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

addJobs(String value)

public DiagnoseClusterRequest.Builder addJobs(String value)

Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}

repeated string jobs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The jobs to add.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

addJobsBytes(ByteString value)

public DiagnoseClusterRequest.Builder addJobsBytes(ByteString value)

Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}

repeated string jobs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the jobs to add.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiagnoseClusterRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides

addYarnApplicationIds(String value)

public DiagnoseClusterRequest.Builder addYarnApplicationIds(String value)

Optional. Specifies a list of yarn applications on which diagnosis is to be performed.

repeated string yarn_application_ids = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The yarnApplicationIds to add.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

addYarnApplicationIdsBytes(ByteString value)

public DiagnoseClusterRequest.Builder addYarnApplicationIdsBytes(ByteString value)

Optional. Specifies a list of yarn applications on which diagnosis is to be performed.

repeated string yarn_application_ids = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the yarnApplicationIds to add.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

build()

public DiagnoseClusterRequest build()
Returns
Type Description
DiagnoseClusterRequest

buildPartial()

public DiagnoseClusterRequest buildPartial()
Returns
Type Description
DiagnoseClusterRequest

clear()

public DiagnoseClusterRequest.Builder clear()
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides

clearClusterName()

public DiagnoseClusterRequest.Builder clearClusterName()

Required. The cluster name.

string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

clearDiagnosisInterval()

public DiagnoseClusterRequest.Builder clearDiagnosisInterval()

Optional. Time interval in which diagnosis should be carried out on the cluster.

.google.type.Interval diagnosis_interval = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiagnoseClusterRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public DiagnoseClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides

clearJobs()

public DiagnoseClusterRequest.Builder clearJobs()

Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}

repeated string jobs = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DiagnoseClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides

clearProjectId()

public DiagnoseClusterRequest.Builder clearProjectId()

Required. The ID of the Google Cloud Platform project that the cluster belongs to.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

clearRegion()

public DiagnoseClusterRequest.Builder clearRegion()

Required. The Dataproc region in which to handle the request.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

clearTarballGcsDir()

public DiagnoseClusterRequest.Builder clearTarballGcsDir()

Optional. The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster's staging bucket will be used.

string tarball_gcs_dir = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

clearYarnApplicationIds()

public DiagnoseClusterRequest.Builder clearYarnApplicationIds()

Optional. Specifies a list of yarn applications on which diagnosis is to be performed.

repeated string yarn_application_ids = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

clone()

public DiagnoseClusterRequest.Builder clone()
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides

getClusterName()

public String getClusterName()

Required. The cluster name.

string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The clusterName.

getClusterNameBytes()

public ByteString getClusterNameBytes()

Required. The cluster name.

string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for clusterName.

getDefaultInstanceForType()

public DiagnoseClusterRequest getDefaultInstanceForType()
Returns
Type Description
DiagnoseClusterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDiagnosisInterval()

public Interval getDiagnosisInterval()

Optional. Time interval in which diagnosis should be carried out on the cluster.

.google.type.Interval diagnosis_interval = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Interval

The diagnosisInterval.

getDiagnosisIntervalBuilder()

public Interval.Builder getDiagnosisIntervalBuilder()

Optional. Time interval in which diagnosis should be carried out on the cluster.

.google.type.Interval diagnosis_interval = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Interval.Builder

getDiagnosisIntervalOrBuilder()

public IntervalOrBuilder getDiagnosisIntervalOrBuilder()

Optional. Time interval in which diagnosis should be carried out on the cluster.

.google.type.Interval diagnosis_interval = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.IntervalOrBuilder

getJobs(int index)

public String getJobs(int index)

Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}

repeated string jobs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The jobs at the given index.

getJobsBytes(int index)

public ByteString getJobsBytes(int index)

Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}

repeated string jobs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the jobs at the given index.

getJobsCount()

public int getJobsCount()

Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}

repeated string jobs = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of jobs.

getJobsList()

public ProtocolStringList getJobsList()

Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}

repeated string jobs = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the jobs.

getProjectId()

public String getProjectId()

Required. The ID of the Google Cloud Platform project that the cluster belongs to.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The ID of the Google Cloud Platform project that the cluster belongs to.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

getRegion()

public String getRegion()

Required. The Dataproc region in which to handle the request.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Required. The Dataproc region in which to handle the request.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for region.

getTarballGcsDir()

public String getTarballGcsDir()

Optional. The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster's staging bucket will be used.

string tarball_gcs_dir = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The tarballGcsDir.

getTarballGcsDirBytes()

public ByteString getTarballGcsDirBytes()

Optional. The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster's staging bucket will be used.

string tarball_gcs_dir = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for tarballGcsDir.

getYarnApplicationIds(int index)

public String getYarnApplicationIds(int index)

Optional. Specifies a list of yarn applications on which diagnosis is to be performed.

repeated string yarn_application_ids = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The yarnApplicationIds at the given index.

getYarnApplicationIdsBytes(int index)

public ByteString getYarnApplicationIdsBytes(int index)

Optional. Specifies a list of yarn applications on which diagnosis is to be performed.

repeated string yarn_application_ids = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the yarnApplicationIds at the given index.

getYarnApplicationIdsCount()

public int getYarnApplicationIdsCount()

Optional. Specifies a list of yarn applications on which diagnosis is to be performed.

repeated string yarn_application_ids = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of yarnApplicationIds.

getYarnApplicationIdsList()

public ProtocolStringList getYarnApplicationIdsList()

Optional. Specifies a list of yarn applications on which diagnosis is to be performed.

repeated string yarn_application_ids = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the yarnApplicationIds.

hasDiagnosisInterval()

public boolean hasDiagnosisInterval()

Optional. Time interval in which diagnosis should be carried out on the cluster.

.google.type.Interval diagnosis_interval = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the diagnosisInterval field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDiagnosisInterval(Interval value)

public DiagnoseClusterRequest.Builder mergeDiagnosisInterval(Interval value)

Optional. Time interval in which diagnosis should be carried out on the cluster.

.google.type.Interval diagnosis_interval = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
DiagnoseClusterRequest.Builder

mergeFrom(DiagnoseClusterRequest other)

public DiagnoseClusterRequest.Builder mergeFrom(DiagnoseClusterRequest other)
Parameter
Name Description
other DiagnoseClusterRequest
Returns
Type Description
DiagnoseClusterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiagnoseClusterRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DiagnoseClusterRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiagnoseClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides

setClusterName(String value)

public DiagnoseClusterRequest.Builder setClusterName(String value)

Required. The cluster name.

string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The clusterName to set.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

setClusterNameBytes(ByteString value)

public DiagnoseClusterRequest.Builder setClusterNameBytes(ByteString value)

Required. The cluster name.

string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for clusterName to set.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

setDiagnosisInterval(Interval value)

public DiagnoseClusterRequest.Builder setDiagnosisInterval(Interval value)

Optional. Time interval in which diagnosis should be carried out on the cluster.

.google.type.Interval diagnosis_interval = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
DiagnoseClusterRequest.Builder

setDiagnosisInterval(Interval.Builder builderForValue)

public DiagnoseClusterRequest.Builder setDiagnosisInterval(Interval.Builder builderForValue)

Optional. Time interval in which diagnosis should be carried out on the cluster.

.google.type.Interval diagnosis_interval = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.type.Interval.Builder
Returns
Type Description
DiagnoseClusterRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DiagnoseClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides

setJobs(int index, String value)

public DiagnoseClusterRequest.Builder setJobs(int index, String value)

Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}

repeated string jobs = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The jobs to set.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

setProjectId(String value)

public DiagnoseClusterRequest.Builder setProjectId(String value)

Required. The ID of the Google Cloud Platform project that the cluster belongs to.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public DiagnoseClusterRequest.Builder setProjectIdBytes(ByteString value)

Required. The ID of the Google Cloud Platform project that the cluster belongs to.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

setRegion(String value)

public DiagnoseClusterRequest.Builder setRegion(String value)

Required. The Dataproc region in which to handle the request.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public DiagnoseClusterRequest.Builder setRegionBytes(ByteString value)

Required. The Dataproc region in which to handle the request.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DiagnoseClusterRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides

setTarballGcsDir(String value)

public DiagnoseClusterRequest.Builder setTarballGcsDir(String value)

Optional. The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster's staging bucket will be used.

string tarball_gcs_dir = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The tarballGcsDir to set.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

setTarballGcsDirBytes(ByteString value)

public DiagnoseClusterRequest.Builder setTarballGcsDirBytes(ByteString value)

Optional. The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster's staging bucket will be used.

string tarball_gcs_dir = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for tarballGcsDir to set.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DiagnoseClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiagnoseClusterRequest.Builder
Overrides

setYarnApplicationIds(int index, String value)

public DiagnoseClusterRequest.Builder setYarnApplicationIds(int index, String value)

Optional. Specifies a list of yarn applications on which diagnosis is to be performed.

repeated string yarn_application_ids = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The yarnApplicationIds to set.

Returns
Type Description
DiagnoseClusterRequest.Builder

This builder for chaining.