Package p4.v1

Class P4RuntimeOuterClass.DigestList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.DigestList.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.DigestList.Builder>
p4.v1.P4RuntimeOuterClass.DigestList.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, P4RuntimeOuterClass.DigestListOrBuilder
Enclosing class:
P4RuntimeOuterClass.DigestList

public static final class P4RuntimeOuterClass.DigestList.Builder extends com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.DigestList.Builder> implements P4RuntimeOuterClass.DigestListOrBuilder
Protobuf type p4.v1.DigestList
  • 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<P4RuntimeOuterClass.DigestList.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<P4RuntimeOuterClass.DigestList.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<P4RuntimeOuterClass.DigestList.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public P4RuntimeOuterClass.DigestList.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<P4RuntimeOuterClass.DigestList.Builder>
      Throws:
      IOException
    • getDigestId

      public int getDigestId()
       identifies the digest extern instance
       
      uint32 digest_id = 1;
      Specified by:
      getDigestId in interface P4RuntimeOuterClass.DigestListOrBuilder
      Returns:
      The digestId.
    • setDigestId

      public P4RuntimeOuterClass.DigestList.Builder setDigestId(int value)
       identifies the digest extern instance
       
      uint32 digest_id = 1;
      Parameters:
      value - The digestId to set.
      Returns:
      This builder for chaining.
    • clearDigestId

       identifies the digest extern instance
       
      uint32 digest_id = 1;
      Returns:
      This builder for chaining.
    • getListId

      public long getListId()
       identifies a list of entries, used by receiver to ack
       
      uint64 list_id = 2;
      Specified by:
      getListId in interface P4RuntimeOuterClass.DigestListOrBuilder
      Returns:
      The listId.
    • setListId

      public P4RuntimeOuterClass.DigestList.Builder setListId(long value)
       identifies a list of entries, used by receiver to ack
       
      uint64 list_id = 2;
      Parameters:
      value - The listId to set.
      Returns:
      This builder for chaining.
    • clearListId

       identifies a list of entries, used by receiver to ack
       
      uint64 list_id = 2;
      Returns:
      This builder for chaining.
    • getDataList

      public List<P4DataOuterClass.P4Data> getDataList()
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
      Specified by:
      getDataList in interface P4RuntimeOuterClass.DigestListOrBuilder
    • getDataCount

      public int getDataCount()
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
      Specified by:
      getDataCount in interface P4RuntimeOuterClass.DigestListOrBuilder
    • getData

      public P4DataOuterClass.P4Data getData(int index)
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
      Specified by:
      getData in interface P4RuntimeOuterClass.DigestListOrBuilder
    • setData

       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • setData

      public P4RuntimeOuterClass.DigestList.Builder setData(int index, P4DataOuterClass.P4Data.Builder builderForValue)
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • addData

       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • addData

       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • addData

       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • addData

      public P4RuntimeOuterClass.DigestList.Builder addData(int index, P4DataOuterClass.P4Data.Builder builderForValue)
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • addAllData

       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • clearData

       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • removeData

      public P4RuntimeOuterClass.DigestList.Builder removeData(int index)
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • getDataBuilder

      public P4DataOuterClass.P4Data.Builder getDataBuilder(int index)
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • getDataOrBuilder

      public P4DataOuterClass.P4DataOrBuilder getDataOrBuilder(int index)
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
      Specified by:
      getDataOrBuilder in interface P4RuntimeOuterClass.DigestListOrBuilder
    • getDataOrBuilderList

      public List<? extends P4DataOuterClass.P4DataOrBuilder> getDataOrBuilderList()
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
      Specified by:
      getDataOrBuilderList in interface P4RuntimeOuterClass.DigestListOrBuilder
    • addDataBuilder

      public P4DataOuterClass.P4Data.Builder addDataBuilder()
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • addDataBuilder

      public P4DataOuterClass.P4Data.Builder addDataBuilder(int index)
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • getDataBuilderList

      public List<P4DataOuterClass.P4Data.Builder> getDataBuilderList()
       List of entries: each call to the Digest<T>::pack() method corresponds to
       one entry and we can have as little as one entry.
       
      repeated .p4.v1.P4Data data = 3;
    • getTimestamp

      public long getTimestamp()
       Timestamp at which the server generated the message (in nanoseconds since
       Epoch)
       
      int64 timestamp = 4;
      Specified by:
      getTimestamp in interface P4RuntimeOuterClass.DigestListOrBuilder
      Returns:
      The timestamp.
    • setTimestamp

      public P4RuntimeOuterClass.DigestList.Builder setTimestamp(long value)
       Timestamp at which the server generated the message (in nanoseconds since
       Epoch)
       
      int64 timestamp = 4;
      Parameters:
      value - The timestamp to set.
      Returns:
      This builder for chaining.
    • clearTimestamp

      public P4RuntimeOuterClass.DigestList.Builder clearTimestamp()
       Timestamp at which the server generated the message (in nanoseconds since
       Epoch)
       
      int64 timestamp = 4;
      Returns:
      This builder for chaining.