Class DiagnoseClusterRequest.Builder (4.24.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
TypeDescription
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
NameDescription
valuesIterable<String>

The jobs to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The yarnApplicationIds to add.

Returns
TypeDescription
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
NameDescription
valueString

The jobs to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the jobs to add.

Returns
TypeDescription
DiagnoseClusterRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiagnoseClusterRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The yarnApplicationIds to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the yarnApplicationIds to add.

Returns
TypeDescription
DiagnoseClusterRequest.Builder

This builder for chaining.

build()

public DiagnoseClusterRequest build()
Returns
TypeDescription
DiagnoseClusterRequest

buildPartial()

public DiagnoseClusterRequest buildPartial()
Returns
TypeDescription
DiagnoseClusterRequest

clear()

public DiagnoseClusterRequest.Builder clear()
Returns
TypeDescription
DiagnoseClusterRequest.Builder
Overrides

clearClusterName()

public DiagnoseClusterRequest.Builder clearClusterName()

Required. The cluster name.

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

Returns
TypeDescription
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
TypeDescription
DiagnoseClusterRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public DiagnoseClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DiagnoseClusterRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DiagnoseClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DiagnoseClusterRequest.Builder

This builder for chaining.

clone()

public DiagnoseClusterRequest.Builder clone()
Returns
TypeDescription
DiagnoseClusterRequest.Builder
Overrides

getClusterName()

public String getClusterName()

Required. The cluster name.

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

Returns
TypeDescription
String

The clusterName.

getClusterNameBytes()

public ByteString getClusterNameBytes()

Required. The cluster name.

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

Returns
TypeDescription
ByteString

The bytes for clusterName.

getDefaultInstanceForType()

public DiagnoseClusterRequest getDefaultInstanceForType()
Returns
TypeDescription
DiagnoseClusterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the diagnosisInterval field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Interval
Returns
TypeDescription
DiagnoseClusterRequest.Builder

mergeFrom(DiagnoseClusterRequest other)

public DiagnoseClusterRequest.Builder mergeFrom(DiagnoseClusterRequest other)
Parameter
NameDescription
otherDiagnoseClusterRequest
Returns
TypeDescription
DiagnoseClusterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiagnoseClusterRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiagnoseClusterRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DiagnoseClusterRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DiagnoseClusterRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiagnoseClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The clusterName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for clusterName to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.type.Interval
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Interval.Builder
Returns
TypeDescription
DiagnoseClusterRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DiagnoseClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The jobs to set.

Returns
TypeDescription
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
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The tarballGcsDir to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for tarballGcsDir to set.

Returns
TypeDescription
DiagnoseClusterRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DiagnoseClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The yarnApplicationIds to set.

Returns
TypeDescription
DiagnoseClusterRequest.Builder

This builder for chaining.