Class RuntimeInfo.Builder (4.51.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RuntimeInfo build()
Returns
Type Description
RuntimeInfo

buildPartial()

public RuntimeInfo buildPartial()
Returns
Type Description
RuntimeInfo

clear()

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

clearApproximateUsage()

public RuntimeInfo.Builder clearApproximateUsage()

Output only. Approximate workload resource usage, calculated when the workload completes (see Dataproc Serverless pricing).

Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the Dataproc Serverless release notes for announcements, changes, fixes and other Dataproc developments).

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

Returns
Type Description
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
Type Description
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
Type Description
RuntimeInfo.Builder

This builder for chaining.

clearEndpoints()

public RuntimeInfo.Builder clearEndpoints()
Returns
Type Description
RuntimeInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RuntimeInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
RuntimeInfo.Builder

This builder for chaining.

clone()

public RuntimeInfo.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getApproximateUsage()

public UsageMetrics getApproximateUsage()

Output only. Approximate workload resource usage, calculated when the workload completes (see Dataproc Serverless pricing).

Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the Dataproc Serverless release notes for announcements, changes, fixes and other Dataproc developments).

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

Returns
Type Description
UsageMetrics

The approximateUsage.

getApproximateUsageBuilder()

public UsageMetrics.Builder getApproximateUsageBuilder()

Output only. Approximate workload resource usage, calculated when the workload completes (see Dataproc Serverless pricing).

Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the Dataproc Serverless release notes for announcements, changes, fixes and other Dataproc developments).

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

Returns
Type Description
UsageMetrics.Builder

getApproximateUsageOrBuilder()

public UsageMetricsOrBuilder getApproximateUsageOrBuilder()

Output only. Approximate workload resource usage, calculated when the workload completes (see Dataproc Serverless pricing).

Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the Dataproc Serverless release notes for announcements, changes, fixes and other Dataproc developments).

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
UsageSnapshotOrBuilder

getDefaultInstanceForType()

public RuntimeInfo getDefaultInstanceForType()
Returns
Type Description
RuntimeInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for diagnosticOutputUri.

getEndpoints() (deprecated)

public Map<String,String> getEndpoints()

Use #getEndpointsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableEndpoints() (deprecated)

public Map<String,String> getMutableEndpoints()

Use alternate mutation accessors instead.

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for outputUri.

hasApproximateUsage()

public boolean hasApproximateUsage()

Output only. Approximate workload resource usage, calculated when the workload completes (see Dataproc Serverless pricing).

Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the Dataproc Serverless release notes for announcements, changes, fixes and other Dataproc developments).

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

Returns
Type Description
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
Type Description
boolean

Whether the currentUsage field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApproximateUsage(UsageMetrics value)

public RuntimeInfo.Builder mergeApproximateUsage(UsageMetrics value)

Output only. Approximate workload resource usage, calculated when the workload completes (see Dataproc Serverless pricing).

Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the Dataproc Serverless release notes for announcements, changes, fixes and other Dataproc developments).

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

Parameter
Name Description
value UsageMetrics
Returns
Type Description
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
Name Description
value UsageSnapshot
Returns
Type Description
RuntimeInfo.Builder

mergeFrom(RuntimeInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RuntimeInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
RuntimeInfo.Builder

setApproximateUsage(UsageMetrics value)

public RuntimeInfo.Builder setApproximateUsage(UsageMetrics value)

Output only. Approximate workload resource usage, calculated when the workload completes (see Dataproc Serverless pricing).

Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the Dataproc Serverless release notes for announcements, changes, fixes and other Dataproc developments).

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

Parameter
Name Description
value UsageMetrics
Returns
Type Description
RuntimeInfo.Builder

setApproximateUsage(UsageMetrics.Builder builderForValue)

public RuntimeInfo.Builder setApproximateUsage(UsageMetrics.Builder builderForValue)

Output only. Approximate workload resource usage, calculated when the workload completes (see Dataproc Serverless pricing).

Note: This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the Dataproc Serverless release notes for announcements, changes, fixes and other Dataproc developments).

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

Parameter
Name Description
builderForValue UsageMetrics.Builder
Returns
Type Description
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
Name Description
value UsageSnapshot
Returns
Type Description
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
Name Description
builderForValue UsageSnapshot.Builder
Returns
Type Description
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
Name Description
value String

The diagnosticOutputUri to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for diagnosticOutputUri to set.

Returns
Type Description
RuntimeInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RuntimeInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The outputUri to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for outputUri to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RuntimeInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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