Class YarnApplication.Builder (4.90.0)

public static final class YarnApplication.Builder extends GeneratedMessage.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

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

clearMemoryMbSeconds()

public YarnApplication.Builder clearMemoryMbSeconds()

Optional. The cumulative memory usage of the application for a job, measured in mb-seconds.

int64 memory_mb_seconds = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

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.

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.

clearVcoreSeconds()

public YarnApplication.Builder clearVcoreSeconds()

Optional. The cumulative CPU time consumed by the application for a job, measured in vcore-seconds.

int64 vcore_seconds = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

getDefaultInstanceForType()

public YarnApplication getDefaultInstanceForType()
Returns
Type Description
YarnApplication

getDescriptorForType()

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

getMemoryMbSeconds()

public long getMemoryMbSeconds()

Optional. The cumulative memory usage of the application for a job, measured in mb-seconds.

int64 memory_mb_seconds = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The memoryMbSeconds.

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.

getVcoreSeconds()

public long getVcoreSeconds()

Optional. The cumulative CPU time consumed by the application for a job, measured in vcore-seconds.

int64 vcore_seconds = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The vcoreSeconds.

internalGetFieldAccessorTable()

protected GeneratedMessage.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

setMemoryMbSeconds(long value)

public YarnApplication.Builder setMemoryMbSeconds(long value)

Optional. The cumulative memory usage of the application for a job, measured in mb-seconds.

int64 memory_mb_seconds = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The memoryMbSeconds to set.

Returns
Type Description
YarnApplication.Builder

This builder for chaining.

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.

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.

setVcoreSeconds(long value)

public YarnApplication.Builder setVcoreSeconds(long value)

Optional. The cumulative CPU time consumed by the application for a job, measured in vcore-seconds.

int64 vcore_seconds = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The vcoreSeconds to set.

Returns
Type Description
YarnApplication.Builder

This builder for chaining.