Package io.sbp.grpc

Class Config.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
io.sbp.grpc.Config.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ConfigOrBuilder, Cloneable
Enclosing class:
Config

public static final class Config.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder> implements ConfigOrBuilder
Protobuf type Config
  • Method Details

    • 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<Config.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Config.Builder mergeFrom(Config other)
    • isInitialized

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

      public Config.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<Config.Builder>
      Throws:
      IOException
    • getStorageName

      public String getStorageName()
      string storageName = 1;
      Specified by:
      getStorageName in interface ConfigOrBuilder
      Returns:
      The storageName.
    • getStorageNameBytes

      public com.google.protobuf.ByteString getStorageNameBytes()
      string storageName = 1;
      Specified by:
      getStorageNameBytes in interface ConfigOrBuilder
      Returns:
      The bytes for storageName.
    • setStorageName

      public Config.Builder setStorageName(String value)
      string storageName = 1;
      Parameters:
      value - The storageName to set.
      Returns:
      This builder for chaining.
    • clearStorageName

      public Config.Builder clearStorageName()
      string storageName = 1;
      Returns:
      This builder for chaining.
    • setStorageNameBytes

      public Config.Builder setStorageNameBytes(com.google.protobuf.ByteString value)
      string storageName = 1;
      Parameters:
      value - The bytes for storageName to set.
      Returns:
      This builder for chaining.
    • getActionValue

      public int getActionValue()
      .EnumAction action = 2;
      Specified by:
      getActionValue in interface ConfigOrBuilder
      Returns:
      The enum numeric value on the wire for action.
    • setActionValue

      public Config.Builder setActionValue(int value)
      .EnumAction action = 2;
      Parameters:
      value - The enum numeric value on the wire for action to set.
      Returns:
      This builder for chaining.
    • getAction

      public EnumAction getAction()
      .EnumAction action = 2;
      Specified by:
      getAction in interface ConfigOrBuilder
      Returns:
      The action.
    • setAction

      public Config.Builder setAction(EnumAction value)
      .EnumAction action = 2;
      Parameters:
      value - The action to set.
      Returns:
      This builder for chaining.
    • clearAction

      public Config.Builder clearAction()
      .EnumAction action = 2;
      Returns:
      This builder for chaining.
    • getTimeUnitValue

      public int getTimeUnitValue()
      .EnumTimeUnit timeUnit = 3;
      Specified by:
      getTimeUnitValue in interface ConfigOrBuilder
      Returns:
      The enum numeric value on the wire for timeUnit.
    • setTimeUnitValue

      public Config.Builder setTimeUnitValue(int value)
      .EnumTimeUnit timeUnit = 3;
      Parameters:
      value - The enum numeric value on the wire for timeUnit to set.
      Returns:
      This builder for chaining.
    • getTimeUnit

      public EnumTimeUnit getTimeUnit()
      .EnumTimeUnit timeUnit = 3;
      Specified by:
      getTimeUnit in interface ConfigOrBuilder
      Returns:
      The timeUnit.
    • setTimeUnit

      public Config.Builder setTimeUnit(EnumTimeUnit value)
      .EnumTimeUnit timeUnit = 3;
      Parameters:
      value - The timeUnit to set.
      Returns:
      This builder for chaining.
    • clearTimeUnit

      public Config.Builder clearTimeUnit()
      .EnumTimeUnit timeUnit = 3;
      Returns:
      This builder for chaining.
    • getMinLatency

      public long getMinLatency()
      int64 minLatency = 4;
      Specified by:
      getMinLatency in interface ConfigOrBuilder
      Returns:
      The minLatency.
    • setMinLatency

      public Config.Builder setMinLatency(long value)
      int64 minLatency = 4;
      Parameters:
      value - The minLatency to set.
      Returns:
      This builder for chaining.
    • clearMinLatency

      public Config.Builder clearMinLatency()
      int64 minLatency = 4;
      Returns:
      This builder for chaining.
    • getMaxLatency

      public long getMaxLatency()
      int64 maxLatency = 5;
      Specified by:
      getMaxLatency in interface ConfigOrBuilder
      Returns:
      The maxLatency.
    • setMaxLatency

      public Config.Builder setMaxLatency(long value)
      int64 maxLatency = 5;
      Parameters:
      value - The maxLatency to set.
      Returns:
      This builder for chaining.
    • clearMaxLatency

      public Config.Builder clearMaxLatency()
      int64 maxLatency = 5;
      Returns:
      This builder for chaining.
    • getIsWriteRequests

      public boolean getIsWriteRequests()
      bool isWriteRequests = 6;
      Specified by:
      getIsWriteRequests in interface ConfigOrBuilder
      Returns:
      The isWriteRequests.
    • setIsWriteRequests

      public Config.Builder setIsWriteRequests(boolean value)
      bool isWriteRequests = 6;
      Parameters:
      value - The isWriteRequests to set.
      Returns:
      This builder for chaining.
    • clearIsWriteRequests

      public Config.Builder clearIsWriteRequests()
      bool isWriteRequests = 6;
      Returns:
      This builder for chaining.
    • getIsReadRequests

      public boolean getIsReadRequests()
      bool isReadRequests = 7;
      Specified by:
      getIsReadRequests in interface ConfigOrBuilder
      Returns:
      The isReadRequests.
    • setIsReadRequests

      public Config.Builder setIsReadRequests(boolean value)
      bool isReadRequests = 7;
      Parameters:
      value - The isReadRequests to set.
      Returns:
      This builder for chaining.
    • clearIsReadRequests

      public Config.Builder clearIsReadRequests()
      bool isReadRequests = 7;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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