Class RuntimeInfo.Builder (4.28.0)

public static final class RuntimeInfo.Builder extends GeneratedMessageV3.Builder<RuntimeInfo.Builder> implements RuntimeInfoOrBuilder

Runtime information about workload execution.

Protobuf type google.cloud.dataproc.v1.RuntimeInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RuntimeInfo build()
Returns
TypeDescription
RuntimeInfo

buildPartial()

public RuntimeInfo buildPartial()
Returns
TypeDescription
RuntimeInfo

clear()

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

clearApproximateUsage()

public RuntimeInfo.Builder clearApproximateUsage()

Output only. Approximate workload resource usage calculated after workload finishes (see Dataproc Serverless pricing).

.google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RuntimeInfo.Builder

clearCurrentUsage()

public RuntimeInfo.Builder clearCurrentUsage()

Output only. Snapshot of current workload resource usage.

.google.cloud.dataproc.v1.UsageSnapshot current_usage = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RuntimeInfo.Builder

clearDiagnosticOutputUri()

public RuntimeInfo.Builder clearDiagnosticOutputUri()

Output only. A URI pointing to the location of the diagnostics tarball.

string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RuntimeInfo.Builder

This builder for chaining.

clearEndpoints()

public RuntimeInfo.Builder clearEndpoints()
Returns
TypeDescription
RuntimeInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RuntimeInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RuntimeInfo.Builder
Overrides

clearOutputUri()

public RuntimeInfo.Builder clearOutputUri()

Output only. A URI pointing to the location of the stdout and stderr of the workload.

string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
RuntimeInfo.Builder

This builder for chaining.

clone()

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

containsEndpoints(String key)

public boolean containsEndpoints(String key)

Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.

map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getApproximateUsage()

public UsageMetrics getApproximateUsage()

Output only. Approximate workload resource usage calculated after workload finishes (see Dataproc Serverless pricing).

.google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UsageMetrics

The approximateUsage.

getApproximateUsageBuilder()

public UsageMetrics.Builder getApproximateUsageBuilder()

Output only. Approximate workload resource usage calculated after workload finishes (see Dataproc Serverless pricing).

.google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UsageMetrics.Builder

getApproximateUsageOrBuilder()

public UsageMetricsOrBuilder getApproximateUsageOrBuilder()

Output only. Approximate workload resource usage calculated after workload finishes (see Dataproc Serverless pricing).

.google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UsageMetricsOrBuilder

getCurrentUsage()

public UsageSnapshot getCurrentUsage()

Output only. Snapshot of current workload resource usage.

.google.cloud.dataproc.v1.UsageSnapshot current_usage = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UsageSnapshot

The currentUsage.

getCurrentUsageBuilder()

public UsageSnapshot.Builder getCurrentUsageBuilder()

Output only. Snapshot of current workload resource usage.

.google.cloud.dataproc.v1.UsageSnapshot current_usage = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UsageSnapshot.Builder

getCurrentUsageOrBuilder()

public UsageSnapshotOrBuilder getCurrentUsageOrBuilder()

Output only. Snapshot of current workload resource usage.

.google.cloud.dataproc.v1.UsageSnapshot current_usage = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
UsageSnapshotOrBuilder

getDefaultInstanceForType()

public RuntimeInfo getDefaultInstanceForType()
Returns
TypeDescription
RuntimeInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiagnosticOutputUri()

public String getDiagnosticOutputUri()

Output only. A URI pointing to the location of the diagnostics tarball.

string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The diagnosticOutputUri.

getDiagnosticOutputUriBytes()

public ByteString getDiagnosticOutputUriBytes()

Output only. A URI pointing to the location of the diagnostics tarball.

string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for diagnosticOutputUri.

getEndpoints() (deprecated)

public Map<String,String> getEndpoints()

Use #getEndpointsMap() instead.

Returns
TypeDescription
Map<String,String>

getEndpointsCount()

public int getEndpointsCount()

Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.

map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getEndpointsMap()

public Map<String,String> getEndpointsMap()

Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.

map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Map<String,String>

getEndpointsOrDefault(String key, String defaultValue)

public String getEndpointsOrDefault(String key, String defaultValue)

Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.

map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getEndpointsOrThrow(String key)

public String getEndpointsOrThrow(String key)

Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.

map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableEndpoints() (deprecated)

public Map<String,String> getMutableEndpoints()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getOutputUri()

public String getOutputUri()

Output only. A URI pointing to the location of the stdout and stderr of the workload.

string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The outputUri.

getOutputUriBytes()

public ByteString getOutputUriBytes()

Output only. A URI pointing to the location of the stdout and stderr of the workload.

string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for outputUri.

hasApproximateUsage()

public boolean hasApproximateUsage()

Output only. Approximate workload resource usage calculated after workload finishes (see Dataproc Serverless pricing).

.google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the approximateUsage field is set.

hasCurrentUsage()

public boolean hasCurrentUsage()

Output only. Snapshot of current workload resource usage.

.google.cloud.dataproc.v1.UsageSnapshot current_usage = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the currentUsage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeApproximateUsage(UsageMetrics value)

public RuntimeInfo.Builder mergeApproximateUsage(UsageMetrics value)

Output only. Approximate workload resource usage calculated after workload finishes (see Dataproc Serverless pricing).

.google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueUsageMetrics
Returns
TypeDescription
RuntimeInfo.Builder

mergeCurrentUsage(UsageSnapshot value)

public RuntimeInfo.Builder mergeCurrentUsage(UsageSnapshot value)

Output only. Snapshot of current workload resource usage.

.google.cloud.dataproc.v1.UsageSnapshot current_usage = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueUsageSnapshot
Returns
TypeDescription
RuntimeInfo.Builder

mergeFrom(RuntimeInfo other)

public RuntimeInfo.Builder mergeFrom(RuntimeInfo other)
Parameter
NameDescription
otherRuntimeInfo
Returns
TypeDescription
RuntimeInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllEndpoints(Map<String,String> values)

public RuntimeInfo.Builder putAllEndpoints(Map<String,String> values)

Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.

map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
RuntimeInfo.Builder

putEndpoints(String key, String value)

public RuntimeInfo.Builder putEndpoints(String key, String value)

Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.

map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
RuntimeInfo.Builder

removeEndpoints(String key)

public RuntimeInfo.Builder removeEndpoints(String key)

Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs.

map<string, string> endpoints = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
RuntimeInfo.Builder

setApproximateUsage(UsageMetrics value)

public RuntimeInfo.Builder setApproximateUsage(UsageMetrics value)

Output only. Approximate workload resource usage calculated after workload finishes (see Dataproc Serverless pricing).

.google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueUsageMetrics
Returns
TypeDescription
RuntimeInfo.Builder

setApproximateUsage(UsageMetrics.Builder builderForValue)

public RuntimeInfo.Builder setApproximateUsage(UsageMetrics.Builder builderForValue)

Output only. Approximate workload resource usage calculated after workload finishes (see Dataproc Serverless pricing).

.google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueUsageMetrics.Builder
Returns
TypeDescription
RuntimeInfo.Builder

setCurrentUsage(UsageSnapshot value)

public RuntimeInfo.Builder setCurrentUsage(UsageSnapshot value)

Output only. Snapshot of current workload resource usage.

.google.cloud.dataproc.v1.UsageSnapshot current_usage = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueUsageSnapshot
Returns
TypeDescription
RuntimeInfo.Builder

setCurrentUsage(UsageSnapshot.Builder builderForValue)

public RuntimeInfo.Builder setCurrentUsage(UsageSnapshot.Builder builderForValue)

Output only. Snapshot of current workload resource usage.

.google.cloud.dataproc.v1.UsageSnapshot current_usage = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueUsageSnapshot.Builder
Returns
TypeDescription
RuntimeInfo.Builder

setDiagnosticOutputUri(String value)

public RuntimeInfo.Builder setDiagnosticOutputUri(String value)

Output only. A URI pointing to the location of the diagnostics tarball.

string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The diagnosticOutputUri to set.

Returns
TypeDescription
RuntimeInfo.Builder

This builder for chaining.

setDiagnosticOutputUriBytes(ByteString value)

public RuntimeInfo.Builder setDiagnosticOutputUriBytes(ByteString value)

Output only. A URI pointing to the location of the diagnostics tarball.

string diagnostic_output_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for diagnosticOutputUri to set.

Returns
TypeDescription
RuntimeInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setOutputUri(String value)

public RuntimeInfo.Builder setOutputUri(String value)

Output only. A URI pointing to the location of the stdout and stderr of the workload.

string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The outputUri to set.

Returns
TypeDescription
RuntimeInfo.Builder

This builder for chaining.

setOutputUriBytes(ByteString value)

public RuntimeInfo.Builder setOutputUriBytes(ByteString value)

Output only. A URI pointing to the location of the stdout and stderr of the workload.

string output_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for outputUri to set.

Returns
TypeDescription
RuntimeInfo.Builder

This builder for chaining.

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

public RuntimeInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RuntimeInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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