Class ClusterStatus.Builder

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

    public static final class ClusterStatus.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ClusterStatus.Builder>
    implements ClusterStatusOrBuilder
     The status of a cluster and its instances.
     
    Protobuf type google.cloud.dataproc.v1.ClusterStatus
    • Method Detail

      • getDescriptor

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

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

        public ClusterStatus.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<ClusterStatus.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<ClusterStatus.Builder>
      • getDefaultInstanceForType

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

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

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

        public ClusterStatus.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<ClusterStatus.Builder>
      • setField

        public ClusterStatus.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<ClusterStatus.Builder>
      • clearField

        public ClusterStatus.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<ClusterStatus.Builder>
      • clearOneof

        public ClusterStatus.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<ClusterStatus.Builder>
      • setRepeatedField

        public ClusterStatus.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<ClusterStatus.Builder>
      • addRepeatedField

        public ClusterStatus.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<ClusterStatus.Builder>
      • mergeFrom

        public ClusterStatus.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<ClusterStatus.Builder>
      • isInitialized

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

        public ClusterStatus.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<ClusterStatus.Builder>
        Throws:
        IOException
      • getStateValue

        public int getStateValue()
         Output only. The cluster's state.
         
        .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface ClusterStatusOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public ClusterStatus.Builder setStateValue​(int value)
         Output only. The cluster's state.
         
        .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public ClusterStatus.State getState()
         Output only. The cluster's state.
         
        .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface ClusterStatusOrBuilder
        Returns:
        The state.
      • setState

        public ClusterStatus.Builder setState​(ClusterStatus.State value)
         Output only. The cluster's state.
         
        .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public ClusterStatus.Builder clearState()
         Output only. The cluster's state.
         
        .google.cloud.dataproc.v1.ClusterStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getDetail

        public String getDetail()
         Optional. Output only. Details of cluster's state.
         
        string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDetail in interface ClusterStatusOrBuilder
        Returns:
        The detail.
      • getDetailBytes

        public com.google.protobuf.ByteString getDetailBytes()
         Optional. Output only. Details of cluster's state.
         
        string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDetailBytes in interface ClusterStatusOrBuilder
        Returns:
        The bytes for detail.
      • setDetail

        public ClusterStatus.Builder setDetail​(String value)
         Optional. Output only. Details of cluster's state.
         
        string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The detail to set.
        Returns:
        This builder for chaining.
      • clearDetail

        public ClusterStatus.Builder clearDetail()
         Optional. Output only. Details of cluster's state.
         
        string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDetailBytes

        public ClusterStatus.Builder setDetailBytes​(com.google.protobuf.ByteString value)
         Optional. Output only. Details of cluster's state.
         
        string detail = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for detail to set.
        Returns:
        This builder for chaining.
      • hasStateStartTime

        public boolean hasStateStartTime()
         Output only. Time when this state was entered (see JSON representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasStateStartTime in interface ClusterStatusOrBuilder
        Returns:
        Whether the stateStartTime field is set.
      • getStateStartTime

        public com.google.protobuf.Timestamp getStateStartTime()
         Output only. Time when this state was entered (see JSON representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateStartTime in interface ClusterStatusOrBuilder
        Returns:
        The stateStartTime.
      • setStateStartTime

        public ClusterStatus.Builder setStateStartTime​(com.google.protobuf.Timestamp value)
         Output only. Time when this state was entered (see JSON representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setStateStartTime

        public ClusterStatus.Builder setStateStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Time when this state was entered (see JSON representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeStateStartTime

        public ClusterStatus.Builder mergeStateStartTime​(com.google.protobuf.Timestamp value)
         Output only. Time when this state was entered (see JSON representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearStateStartTime

        public ClusterStatus.Builder clearStateStartTime()
         Output only. Time when this state was entered (see JSON representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStateStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder()
         Output only. Time when this state was entered (see JSON representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStateStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder()
         Output only. Time when this state was entered (see JSON representation of
         [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).
         
        .google.protobuf.Timestamp state_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateStartTimeOrBuilder in interface ClusterStatusOrBuilder
      • getSubstateValue

        public int getSubstateValue()
         Output only. Additional state information that includes
         status reported by the agent.
         
        .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSubstateValue in interface ClusterStatusOrBuilder
        Returns:
        The enum numeric value on the wire for substate.
      • setSubstateValue

        public ClusterStatus.Builder setSubstateValue​(int value)
         Output only. Additional state information that includes
         status reported by the agent.
         
        .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for substate to set.
        Returns:
        This builder for chaining.
      • getSubstate

        public ClusterStatus.Substate getSubstate()
         Output only. Additional state information that includes
         status reported by the agent.
         
        .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSubstate in interface ClusterStatusOrBuilder
        Returns:
        The substate.
      • setSubstate

        public ClusterStatus.Builder setSubstate​(ClusterStatus.Substate value)
         Output only. Additional state information that includes
         status reported by the agent.
         
        .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The substate to set.
        Returns:
        This builder for chaining.
      • clearSubstate

        public ClusterStatus.Builder clearSubstate()
         Output only. Additional state information that includes
         status reported by the agent.
         
        .google.cloud.dataproc.v1.ClusterStatus.Substate substate = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ClusterStatus.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<ClusterStatus.Builder>
      • mergeUnknownFields

        public final ClusterStatus.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<ClusterStatus.Builder>