Class DiagnoseClusterRequest.Builder (4.19.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiagnoseClusterRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DiagnoseClusterRequest.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public DiagnoseClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DiagnoseClusterRequest.Builder
Overrides

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.

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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.

setField(Descriptors.FieldDescriptor field, Object value)

public DiagnoseClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DiagnoseClusterRequest.Builder
Overrides

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

setUnknownFields(UnknownFieldSet unknownFields)

public final DiagnoseClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DiagnoseClusterRequest.Builder
Overrides