Package s2.v1alpha

Class ReadLimit.Builder

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

    public static final class ReadLimit.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ReadLimit.Builder>
    implements ReadLimitOrBuilder
     If both count and bytes are specified, either limit may be hit.
     
    Protobuf type s2.v1alpha.ReadLimit
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ReadLimit build()  
      ReadLimit buildPartial()  
      ReadLimit.Builder clear()  
      ReadLimit.Builder clearBytes()
      Metered bytes limit.
      ReadLimit.Builder clearCount()
      Record count limit.
      long getBytes()
      Metered bytes limit.
      long getCount()
      Record count limit.
      ReadLimit getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      boolean hasBytes()
      Metered bytes limit.
      boolean hasCount()
      Record count limit.
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      ReadLimit.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      ReadLimit.Builder mergeFrom​(com.google.protobuf.Message other)  
      ReadLimit.Builder mergeFrom​(ReadLimit other)  
      ReadLimit.Builder setBytes​(long value)
      Metered bytes limit.
      ReadLimit.Builder setCount​(long value)
      Record count limit.
      • Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

        addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

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

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

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

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

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

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

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

        public ReadLimit.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<ReadLimit.Builder>
        Throws:
        java.io.IOException
      • hasCount

        public boolean hasCount()
         Record count limit.
         
        optional uint64 count = 1;
        Specified by:
        hasCount in interface ReadLimitOrBuilder
        Returns:
        Whether the count field is set.
      • getCount

        public long getCount()
         Record count limit.
         
        optional uint64 count = 1;
        Specified by:
        getCount in interface ReadLimitOrBuilder
        Returns:
        The count.
      • setCount

        public ReadLimit.Builder setCount​(long value)
         Record count limit.
         
        optional uint64 count = 1;
        Parameters:
        value - The count to set.
        Returns:
        This builder for chaining.
      • clearCount

        public ReadLimit.Builder clearCount()
         Record count limit.
         
        optional uint64 count = 1;
        Returns:
        This builder for chaining.
      • hasBytes

        public boolean hasBytes()
         Metered bytes limit.
         
        optional uint64 bytes = 2;
        Specified by:
        hasBytes in interface ReadLimitOrBuilder
        Returns:
        Whether the bytes field is set.
      • getBytes

        public long getBytes()
         Metered bytes limit.
         
        optional uint64 bytes = 2;
        Specified by:
        getBytes in interface ReadLimitOrBuilder
        Returns:
        The bytes.
      • setBytes

        public ReadLimit.Builder setBytes​(long value)
         Metered bytes limit.
         
        optional uint64 bytes = 2;
        Parameters:
        value - The bytes to set.
        Returns:
        This builder for chaining.
      • clearBytes

        public ReadLimit.Builder clearBytes()
         Metered bytes limit.
         
        optional uint64 bytes = 2;
        Returns:
        This builder for chaining.