Class StringListRestriction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<StringListRestriction.Builder>
com.google.protobuf.GeneratedMessage.Builder<StringListRestriction.Builder>
io.deephaven.proto.backplane.grpc.StringListRestriction.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StringListRestrictionOrBuilder, Cloneable
Enclosing class:
StringListRestriction

public static final class StringListRestriction.Builder extends com.google.protobuf.GeneratedMessage.Builder<StringListRestriction.Builder> implements StringListRestrictionOrBuilder
 An example restriction indicating that the string value must belong to the provided set of values (or Null), to
 forbid null values, include both a StringListRestriction and NotNullRestriction.
 
Protobuf type io.deephaven.proto.backplane.grpc.StringListRestriction
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StringListRestriction.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.GeneratedMessage.Builder<StringListRestriction.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.GeneratedMessage.Builder<StringListRestriction.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public StringListRestriction.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<StringListRestriction.Builder>
      Throws:
      IOException
    • getAllowedValuesList

      public com.google.protobuf.ProtocolStringList getAllowedValuesList()
      repeated string allowed_values = 1;
      Specified by:
      getAllowedValuesList in interface StringListRestrictionOrBuilder
      Returns:
      A list containing the allowedValues.
    • getAllowedValuesCount

      public int getAllowedValuesCount()
      repeated string allowed_values = 1;
      Specified by:
      getAllowedValuesCount in interface StringListRestrictionOrBuilder
      Returns:
      The count of allowedValues.
    • getAllowedValues

      public String getAllowedValues(int index)
      repeated string allowed_values = 1;
      Specified by:
      getAllowedValues in interface StringListRestrictionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedValues at the given index.
    • getAllowedValuesBytes

      public com.google.protobuf.ByteString getAllowedValuesBytes(int index)
      repeated string allowed_values = 1;
      Specified by:
      getAllowedValuesBytes in interface StringListRestrictionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedValues at the given index.
    • setAllowedValues

      public StringListRestriction.Builder setAllowedValues(int index, String value)
      repeated string allowed_values = 1;
      Parameters:
      index - The index to set the value at.
      value - The allowedValues to set.
      Returns:
      This builder for chaining.
    • addAllowedValues

      public StringListRestriction.Builder addAllowedValues(String value)
      repeated string allowed_values = 1;
      Parameters:
      value - The allowedValues to add.
      Returns:
      This builder for chaining.
    • addAllAllowedValues

      public StringListRestriction.Builder addAllAllowedValues(Iterable<String> values)
      repeated string allowed_values = 1;
      Parameters:
      values - The allowedValues to add.
      Returns:
      This builder for chaining.
    • clearAllowedValues

      public StringListRestriction.Builder clearAllowedValues()
      repeated string allowed_values = 1;
      Returns:
      This builder for chaining.
    • addAllowedValuesBytes

      public StringListRestriction.Builder addAllowedValuesBytes(com.google.protobuf.ByteString value)
      repeated string allowed_values = 1;
      Parameters:
      value - The bytes of the allowedValues to add.
      Returns:
      This builder for chaining.