Class RuntimeInfo.Builder

  • All Implemented Interfaces:
    RuntimeInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    RuntimeInfo

    public static final class RuntimeInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
    implements RuntimeInfoOrBuilder
     Runtime information about workload execution.
     
    Protobuf type google.cloud.dataproc.v1.RuntimeInfo
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • clear

        public RuntimeInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • getDefaultInstanceForType

        public RuntimeInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public RuntimeInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public RuntimeInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public RuntimeInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • setField

        public RuntimeInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • clearField

        public RuntimeInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • clearOneof

        public RuntimeInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • setRepeatedField

        public RuntimeInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • addRepeatedField

        public RuntimeInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • mergeFrom

        public RuntimeInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RuntimeInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • mergeFrom

        public RuntimeInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RuntimeInfo.Builder>
        Throws:
        IOException
      • getEndpointsCount

        public int getEndpointsCount()
        Description copied from interface: RuntimeInfoOrBuilder
         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];
        Specified by:
        getEndpointsCount in interface RuntimeInfoOrBuilder
      • containsEndpoints

        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];
        Specified by:
        containsEndpoints in interface RuntimeInfoOrBuilder
      • 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];
        Specified by:
        getEndpointsMap in interface RuntimeInfoOrBuilder
      • getEndpointsOrDefault

        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];
        Specified by:
        getEndpointsOrDefault in interface RuntimeInfoOrBuilder
      • getEndpointsOrThrow

        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];
        Specified by:
        getEndpointsOrThrow in interface RuntimeInfoOrBuilder
      • removeEndpoints

        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];
      • getMutableEndpoints

        @Deprecated
        public Map<String,​String> getMutableEndpoints()
        Deprecated.
        Use alternate mutation accessors instead.
      • putEndpoints

        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];
      • putAllEndpoints

        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];
      • 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];
        Specified by:
        getOutputUri in interface RuntimeInfoOrBuilder
        Returns:
        The outputUri.
      • getOutputUriBytes

        public com.google.protobuf.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];
        Specified by:
        getOutputUriBytes in interface RuntimeInfoOrBuilder
        Returns:
        The bytes for outputUri.
      • setOutputUri

        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];
        Parameters:
        value - The outputUri to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setOutputUriBytes

        public RuntimeInfo.Builder setOutputUriBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for outputUri to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getDiagnosticOutputUri in interface RuntimeInfoOrBuilder
        Returns:
        The diagnosticOutputUri.
      • getDiagnosticOutputUriBytes

        public com.google.protobuf.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];
        Specified by:
        getDiagnosticOutputUriBytes in interface RuntimeInfoOrBuilder
        Returns:
        The bytes for diagnosticOutputUri.
      • setDiagnosticOutputUri

        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];
        Parameters:
        value - The diagnosticOutputUri to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setDiagnosticOutputUriBytes

        public RuntimeInfo.Builder setDiagnosticOutputUriBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for diagnosticOutputUri to set.
        Returns:
        This builder for chaining.
      • hasApproximateUsage

        public boolean hasApproximateUsage()
         Output only. Approximate workload resource usage calculated after workload
         finishes (see [Dataproc Serverless pricing]
         (https://cloud.google.com/dataproc-serverless/pricing)).
         
        .google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasApproximateUsage in interface RuntimeInfoOrBuilder
        Returns:
        Whether the approximateUsage field is set.
      • getApproximateUsage

        public UsageMetrics getApproximateUsage()
         Output only. Approximate workload resource usage calculated after workload
         finishes (see [Dataproc Serverless pricing]
         (https://cloud.google.com/dataproc-serverless/pricing)).
         
        .google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getApproximateUsage in interface RuntimeInfoOrBuilder
        Returns:
        The approximateUsage.
      • setApproximateUsage

        public RuntimeInfo.Builder setApproximateUsage​(UsageMetrics value)
         Output only. Approximate workload resource usage calculated after workload
         finishes (see [Dataproc Serverless pricing]
         (https://cloud.google.com/dataproc-serverless/pricing)).
         
        .google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setApproximateUsage

        public RuntimeInfo.Builder setApproximateUsage​(UsageMetrics.Builder builderForValue)
         Output only. Approximate workload resource usage calculated after workload
         finishes (see [Dataproc Serverless pricing]
         (https://cloud.google.com/dataproc-serverless/pricing)).
         
        .google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeApproximateUsage

        public RuntimeInfo.Builder mergeApproximateUsage​(UsageMetrics value)
         Output only. Approximate workload resource usage calculated after workload
         finishes (see [Dataproc Serverless pricing]
         (https://cloud.google.com/dataproc-serverless/pricing)).
         
        .google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearApproximateUsage

        public RuntimeInfo.Builder clearApproximateUsage()
         Output only. Approximate workload resource usage calculated after workload
         finishes (see [Dataproc Serverless pricing]
         (https://cloud.google.com/dataproc-serverless/pricing)).
         
        .google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getApproximateUsageBuilder

        public UsageMetrics.Builder getApproximateUsageBuilder()
         Output only. Approximate workload resource usage calculated after workload
         finishes (see [Dataproc Serverless pricing]
         (https://cloud.google.com/dataproc-serverless/pricing)).
         
        .google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getApproximateUsageOrBuilder

        public UsageMetricsOrBuilder getApproximateUsageOrBuilder()
         Output only. Approximate workload resource usage calculated after workload
         finishes (see [Dataproc Serverless pricing]
         (https://cloud.google.com/dataproc-serverless/pricing)).
         
        .google.cloud.dataproc.v1.UsageMetrics approximate_usage = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getApproximateUsageOrBuilder in interface RuntimeInfoOrBuilder
      • 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];
        Specified by:
        hasCurrentUsage in interface RuntimeInfoOrBuilder
        Returns:
        Whether the currentUsage field is set.
      • 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];
        Specified by:
        getCurrentUsage in interface RuntimeInfoOrBuilder
        Returns:
        The currentUsage.
      • setCurrentUsage

        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];
      • setCurrentUsage

        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];
      • mergeCurrentUsage

        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];
      • 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];
      • 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];
      • setUnknownFields

        public final RuntimeInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>
      • mergeUnknownFields

        public final RuntimeInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RuntimeInfo.Builder>