Class Capacity.Request.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Capacity.RequestOrBuilder, java.lang.Cloneable
    Enclosing class:
    Capacity.Request

    public static final class Capacity.Request.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Capacity.Request.Builder>
    implements Capacity.RequestOrBuilder
    Protobuf type temporal.api.cloud.namespace.v1.Capacity.Request
    • 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<Capacity.Request.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public Capacity.Request.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.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<Capacity.Request.Builder>
        Throws:
        java.io.IOException
      • getStateValue

        public int getStateValue()
         The current state of the capacity request (e.g. in-progress, completed, failed).
         
        .temporal.api.cloud.namespace.v1.Capacity.Request.State state = 1;
        Specified by:
        getStateValue in interface Capacity.RequestOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Capacity.Request.Builder setStateValue​(int value)
         The current state of the capacity request (e.g. in-progress, completed, failed).
         
        .temporal.api.cloud.namespace.v1.Capacity.Request.State state = 1;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Capacity.Request.State getState()
         The current state of the capacity request (e.g. in-progress, completed, failed).
         
        .temporal.api.cloud.namespace.v1.Capacity.Request.State state = 1;
        Specified by:
        getState in interface Capacity.RequestOrBuilder
        Returns:
        The state.
      • setState

        public Capacity.Request.Builder setState​(Capacity.Request.State value)
         The current state of the capacity request (e.g. in-progress, completed, failed).
         
        .temporal.api.cloud.namespace.v1.Capacity.Request.State state = 1;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Capacity.Request.Builder clearState()
         The current state of the capacity request (e.g. in-progress, completed, failed).
         
        .temporal.api.cloud.namespace.v1.Capacity.Request.State state = 1;
        Returns:
        This builder for chaining.
      • hasStartTime

        public boolean hasStartTime()
         The date and time when the capacity request was created.
         
        .google.protobuf.Timestamp start_time = 2;
        Specified by:
        hasStartTime in interface Capacity.RequestOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         The date and time when the capacity request was created.
         
        .google.protobuf.Timestamp start_time = 2;
        Specified by:
        getStartTime in interface Capacity.RequestOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public Capacity.Request.Builder setStartTime​(com.google.protobuf.Timestamp value)
         The date and time when the capacity request was created.
         
        .google.protobuf.Timestamp start_time = 2;
      • setStartTime

        public Capacity.Request.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The date and time when the capacity request was created.
         
        .google.protobuf.Timestamp start_time = 2;
      • mergeStartTime

        public Capacity.Request.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         The date and time when the capacity request was created.
         
        .google.protobuf.Timestamp start_time = 2;
      • clearStartTime

        public Capacity.Request.Builder clearStartTime()
         The date and time when the capacity request was created.
         
        .google.protobuf.Timestamp start_time = 2;
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         The date and time when the capacity request was created.
         
        .google.protobuf.Timestamp start_time = 2;
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         The date and time when the capacity request was created.
         
        .google.protobuf.Timestamp start_time = 2;
        Specified by:
        getStartTimeOrBuilder in interface Capacity.RequestOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         The date and time when the capacity request was completed or failed.
         
        .google.protobuf.Timestamp end_time = 3;
        Specified by:
        hasEndTime in interface Capacity.RequestOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         The date and time when the capacity request was completed or failed.
         
        .google.protobuf.Timestamp end_time = 3;
        Specified by:
        getEndTime in interface Capacity.RequestOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public Capacity.Request.Builder setEndTime​(com.google.protobuf.Timestamp value)
         The date and time when the capacity request was completed or failed.
         
        .google.protobuf.Timestamp end_time = 3;
      • setEndTime

        public Capacity.Request.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The date and time when the capacity request was completed or failed.
         
        .google.protobuf.Timestamp end_time = 3;
      • mergeEndTime

        public Capacity.Request.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         The date and time when the capacity request was completed or failed.
         
        .google.protobuf.Timestamp end_time = 3;
      • clearEndTime

        public Capacity.Request.Builder clearEndTime()
         The date and time when the capacity request was completed or failed.
         
        .google.protobuf.Timestamp end_time = 3;
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         The date and time when the capacity request was completed or failed.
         
        .google.protobuf.Timestamp end_time = 3;
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         The date and time when the capacity request was completed or failed.
         
        .google.protobuf.Timestamp end_time = 3;
        Specified by:
        getEndTimeOrBuilder in interface Capacity.RequestOrBuilder
      • getAsyncOperationId

        public java.lang.String getAsyncOperationId()
         The id of the async operation that is creating/updating/deleting the capacity, if any.
         
        string async_operation_id = 4;
        Specified by:
        getAsyncOperationId in interface Capacity.RequestOrBuilder
        Returns:
        The asyncOperationId.
      • getAsyncOperationIdBytes

        public com.google.protobuf.ByteString getAsyncOperationIdBytes()
         The id of the async operation that is creating/updating/deleting the capacity, if any.
         
        string async_operation_id = 4;
        Specified by:
        getAsyncOperationIdBytes in interface Capacity.RequestOrBuilder
        Returns:
        The bytes for asyncOperationId.
      • setAsyncOperationId

        public Capacity.Request.Builder setAsyncOperationId​(java.lang.String value)
         The id of the async operation that is creating/updating/deleting the capacity, if any.
         
        string async_operation_id = 4;
        Parameters:
        value - The asyncOperationId to set.
        Returns:
        This builder for chaining.
      • clearAsyncOperationId

        public Capacity.Request.Builder clearAsyncOperationId()
         The id of the async operation that is creating/updating/deleting the capacity, if any.
         
        string async_operation_id = 4;
        Returns:
        This builder for chaining.
      • setAsyncOperationIdBytes

        public Capacity.Request.Builder setAsyncOperationIdBytes​(com.google.protobuf.ByteString value)
         The id of the async operation that is creating/updating/deleting the capacity, if any.
         
        string async_operation_id = 4;
        Parameters:
        value - The bytes for asyncOperationId to set.
        Returns:
        This builder for chaining.
      • hasSpec

        public boolean hasSpec()
         The requested capacity specification.
         
        .temporal.api.cloud.namespace.v1.CapacitySpec spec = 5;
        Specified by:
        hasSpec in interface Capacity.RequestOrBuilder
        Returns:
        Whether the spec field is set.
      • clearSpec

        public Capacity.Request.Builder clearSpec()
         The requested capacity specification.
         
        .temporal.api.cloud.namespace.v1.CapacitySpec spec = 5;
      • getSpecBuilder

        public CapacitySpec.Builder getSpecBuilder()
         The requested capacity specification.
         
        .temporal.api.cloud.namespace.v1.CapacitySpec spec = 5;
      • setUnknownFields

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

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