Class YarnApplication.Builder (4.10.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public YarnApplication build()
Returns
TypeDescription
YarnApplication

buildPartial()

public YarnApplication buildPartial()
Returns
TypeDescription
YarnApplication

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public YarnApplication.Builder clearName()

Required. The application name.

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

Returns
TypeDescription
YarnApplication.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public YarnApplication getDefaultInstanceForType()
Returns
TypeDescription
YarnApplication

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The application name.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The application name.

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

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

The bytes for trackingUrl.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(YarnApplication other)

public YarnApplication.Builder mergeFrom(YarnApplication other)
Parameter
NameDescription
otherYarnApplication
Returns
TypeDescription
YarnApplication.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final YarnApplication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
YarnApplication.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The progress to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueYarnApplication.State

The state to set.

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

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

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

The trackingUrl to set.

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

The bytes for trackingUrl to set.

Returns
TypeDescription
YarnApplication.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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