Class YarnApplication.Builder (4.44.0)

public static final class YarnApplication.Builder extends GeneratedMessageV3.Builder<YarnApplication.Builder> implements YarnApplicationOrBuilder

A YARN application created by a job. Application information is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.

Beta Feature: This report is available for testing purposes only. It may be changed before final release.

Protobuf type google.cloud.dataproc.v1.YarnApplication

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public YarnApplication build()
Returns
Type Description
YarnApplication

buildPartial()

public YarnApplication buildPartial()
Returns
Type Description
YarnApplication

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public YarnApplication.Builder clearName()

Required. The application name.

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

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgress()

public YarnApplication.Builder clearProgress()

Required. The numerical progress of the application, from 1 to 100.

float progress = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

clearState()

public YarnApplication.Builder clearState()

Required. The application state.

.google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

clearTrackingUrl()

public YarnApplication.Builder clearTrackingUrl()

Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.

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

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public YarnApplication getDefaultInstanceForType()
Returns
Type Description
YarnApplication

getDescriptorForType()

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

getName()

public String getName()

Required. The application name.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The application name.

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

Returns
Type Description
ByteString

The bytes for name.

getProgress()

public float getProgress()

Required. The numerical progress of the application, from 1 to 100.

float progress = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
float

The progress.

getState()

public YarnApplication.State getState()

Required. The application state.

.google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
YarnApplication.State

The state.

getStateValue()

public int getStateValue()

Required. The application state.

.google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTrackingUrl()

public String getTrackingUrl()

Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.

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

Returns
Type Description
String

The trackingUrl.

getTrackingUrlBytes()

public ByteString getTrackingUrlBytes()

Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.

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

Returns
Type Description
ByteString

The bytes for trackingUrl.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(YarnApplication other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public YarnApplication.Builder setName(String value)

Required. The application name.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

setNameBytes(ByteString value)

public YarnApplication.Builder setNameBytes(ByteString value)

Required. The application name.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

setProgress(float value)

public YarnApplication.Builder setProgress(float value)

Required. The numerical progress of the application, from 1 to 100.

float progress = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value float

The progress to set.

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

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

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

setState(YarnApplication.State value)

public YarnApplication.Builder setState(YarnApplication.State value)

Required. The application state.

.google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value YarnApplication.State

The state to set.

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

setStateValue(int value)

public YarnApplication.Builder setStateValue(int value)

Required. The application state.

.google.cloud.dataproc.v1.YarnApplication.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

setTrackingUrl(String value)

public YarnApplication.Builder setTrackingUrl(String value)

Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.

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

Parameter
Name Description
value String

The trackingUrl to set.

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

setTrackingUrlBytes(ByteString value)

public YarnApplication.Builder setTrackingUrlBytes(ByteString value)

Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.

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

Parameter
Name Description
value ByteString

The bytes for trackingUrl to set.

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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