Class AutoscalingEvent.Builder

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

    public static final class AutoscalingEvent.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingEvent.Builder>
    implements AutoscalingEventOrBuilder
     A structured message reporting an autoscaling decision made by the Dataflow
     service.
     
    Protobuf type google.dataflow.v1beta3.AutoscalingEvent
    • 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<AutoscalingEvent.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public AutoscalingEvent.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<AutoscalingEvent.Builder>
        Throws:
        IOException
      • getCurrentNumWorkers

        public long getCurrentNumWorkers()
         The current number of workers the job has.
         
        int64 current_num_workers = 1;
        Specified by:
        getCurrentNumWorkers in interface AutoscalingEventOrBuilder
        Returns:
        The currentNumWorkers.
      • setCurrentNumWorkers

        public AutoscalingEvent.Builder setCurrentNumWorkers​(long value)
         The current number of workers the job has.
         
        int64 current_num_workers = 1;
        Parameters:
        value - The currentNumWorkers to set.
        Returns:
        This builder for chaining.
      • clearCurrentNumWorkers

        public AutoscalingEvent.Builder clearCurrentNumWorkers()
         The current number of workers the job has.
         
        int64 current_num_workers = 1;
        Returns:
        This builder for chaining.
      • getTargetNumWorkers

        public long getTargetNumWorkers()
         The target number of workers the worker pool wants to resize to use.
         
        int64 target_num_workers = 2;
        Specified by:
        getTargetNumWorkers in interface AutoscalingEventOrBuilder
        Returns:
        The targetNumWorkers.
      • setTargetNumWorkers

        public AutoscalingEvent.Builder setTargetNumWorkers​(long value)
         The target number of workers the worker pool wants to resize to use.
         
        int64 target_num_workers = 2;
        Parameters:
        value - The targetNumWorkers to set.
        Returns:
        This builder for chaining.
      • clearTargetNumWorkers

        public AutoscalingEvent.Builder clearTargetNumWorkers()
         The target number of workers the worker pool wants to resize to use.
         
        int64 target_num_workers = 2;
        Returns:
        This builder for chaining.
      • getEventTypeValue

        public int getEventTypeValue()
         The type of autoscaling event to report.
         
        .google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;
        Specified by:
        getEventTypeValue in interface AutoscalingEventOrBuilder
        Returns:
        The enum numeric value on the wire for eventType.
      • setEventTypeValue

        public AutoscalingEvent.Builder setEventTypeValue​(int value)
         The type of autoscaling event to report.
         
        .google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;
        Parameters:
        value - The enum numeric value on the wire for eventType to set.
        Returns:
        This builder for chaining.
      • setEventType

        public AutoscalingEvent.Builder setEventType​(AutoscalingEvent.AutoscalingEventType value)
         The type of autoscaling event to report.
         
        .google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;
        Parameters:
        value - The eventType to set.
        Returns:
        This builder for chaining.
      • clearEventType

        public AutoscalingEvent.Builder clearEventType()
         The type of autoscaling event to report.
         
        .google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3;
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
         A message describing why the system decided to adjust the current
         number of workers, why it failed, or why the system decided to
         not make any changes to the number of workers.
         
        .google.dataflow.v1beta3.StructuredMessage description = 4;
        Specified by:
        hasDescription in interface AutoscalingEventOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public StructuredMessage getDescription()
         A message describing why the system decided to adjust the current
         number of workers, why it failed, or why the system decided to
         not make any changes to the number of workers.
         
        .google.dataflow.v1beta3.StructuredMessage description = 4;
        Specified by:
        getDescription in interface AutoscalingEventOrBuilder
        Returns:
        The description.
      • setDescription

        public AutoscalingEvent.Builder setDescription​(StructuredMessage value)
         A message describing why the system decided to adjust the current
         number of workers, why it failed, or why the system decided to
         not make any changes to the number of workers.
         
        .google.dataflow.v1beta3.StructuredMessage description = 4;
      • setDescription

        public AutoscalingEvent.Builder setDescription​(StructuredMessage.Builder builderForValue)
         A message describing why the system decided to adjust the current
         number of workers, why it failed, or why the system decided to
         not make any changes to the number of workers.
         
        .google.dataflow.v1beta3.StructuredMessage description = 4;
      • mergeDescription

        public AutoscalingEvent.Builder mergeDescription​(StructuredMessage value)
         A message describing why the system decided to adjust the current
         number of workers, why it failed, or why the system decided to
         not make any changes to the number of workers.
         
        .google.dataflow.v1beta3.StructuredMessage description = 4;
      • clearDescription

        public AutoscalingEvent.Builder clearDescription()
         A message describing why the system decided to adjust the current
         number of workers, why it failed, or why the system decided to
         not make any changes to the number of workers.
         
        .google.dataflow.v1beta3.StructuredMessage description = 4;
      • getDescriptionBuilder

        public StructuredMessage.Builder getDescriptionBuilder()
         A message describing why the system decided to adjust the current
         number of workers, why it failed, or why the system decided to
         not make any changes to the number of workers.
         
        .google.dataflow.v1beta3.StructuredMessage description = 4;
      • getDescriptionOrBuilder

        public StructuredMessageOrBuilder getDescriptionOrBuilder()
         A message describing why the system decided to adjust the current
         number of workers, why it failed, or why the system decided to
         not make any changes to the number of workers.
         
        .google.dataflow.v1beta3.StructuredMessage description = 4;
        Specified by:
        getDescriptionOrBuilder in interface AutoscalingEventOrBuilder
      • hasTime

        public boolean hasTime()
         The time this event was emitted to indicate a new target or current
         num_workers value.
         
        .google.protobuf.Timestamp time = 5;
        Specified by:
        hasTime in interface AutoscalingEventOrBuilder
        Returns:
        Whether the time field is set.
      • getTime

        public com.google.protobuf.Timestamp getTime()
         The time this event was emitted to indicate a new target or current
         num_workers value.
         
        .google.protobuf.Timestamp time = 5;
        Specified by:
        getTime in interface AutoscalingEventOrBuilder
        Returns:
        The time.
      • setTime

        public AutoscalingEvent.Builder setTime​(com.google.protobuf.Timestamp value)
         The time this event was emitted to indicate a new target or current
         num_workers value.
         
        .google.protobuf.Timestamp time = 5;
      • setTime

        public AutoscalingEvent.Builder setTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time this event was emitted to indicate a new target or current
         num_workers value.
         
        .google.protobuf.Timestamp time = 5;
      • mergeTime

        public AutoscalingEvent.Builder mergeTime​(com.google.protobuf.Timestamp value)
         The time this event was emitted to indicate a new target or current
         num_workers value.
         
        .google.protobuf.Timestamp time = 5;
      • clearTime

        public AutoscalingEvent.Builder clearTime()
         The time this event was emitted to indicate a new target or current
         num_workers value.
         
        .google.protobuf.Timestamp time = 5;
      • getTimeBuilder

        public com.google.protobuf.Timestamp.Builder getTimeBuilder()
         The time this event was emitted to indicate a new target or current
         num_workers value.
         
        .google.protobuf.Timestamp time = 5;
      • getTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()
         The time this event was emitted to indicate a new target or current
         num_workers value.
         
        .google.protobuf.Timestamp time = 5;
        Specified by:
        getTimeOrBuilder in interface AutoscalingEventOrBuilder
      • getWorkerPool

        public String getWorkerPool()
         A short and friendly name for the worker pool this event refers to.
         
        string worker_pool = 7;
        Specified by:
        getWorkerPool in interface AutoscalingEventOrBuilder
        Returns:
        The workerPool.
      • getWorkerPoolBytes

        public com.google.protobuf.ByteString getWorkerPoolBytes()
         A short and friendly name for the worker pool this event refers to.
         
        string worker_pool = 7;
        Specified by:
        getWorkerPoolBytes in interface AutoscalingEventOrBuilder
        Returns:
        The bytes for workerPool.
      • setWorkerPool

        public AutoscalingEvent.Builder setWorkerPool​(String value)
         A short and friendly name for the worker pool this event refers to.
         
        string worker_pool = 7;
        Parameters:
        value - The workerPool to set.
        Returns:
        This builder for chaining.
      • clearWorkerPool

        public AutoscalingEvent.Builder clearWorkerPool()
         A short and friendly name for the worker pool this event refers to.
         
        string worker_pool = 7;
        Returns:
        This builder for chaining.
      • setWorkerPoolBytes

        public AutoscalingEvent.Builder setWorkerPoolBytes​(com.google.protobuf.ByteString value)
         A short and friendly name for the worker pool this event refers to.
         
        string worker_pool = 7;
        Parameters:
        value - The bytes for workerPool to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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