Class RegisteredServiceEndpoint.BlockNodeEndpoint.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<RegisteredServiceEndpoint.BlockNodeEndpoint,RegisteredServiceEndpoint.BlockNodeEndpoint.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<RegisteredServiceEndpoint.BlockNodeEndpoint,RegisteredServiceEndpoint.BlockNodeEndpoint.Builder>
com.hedera.hashgraph.sdk.proto.RegisteredServiceEndpoint.BlockNodeEndpoint.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, RegisteredServiceEndpoint.BlockNodeEndpointOrBuilder, Cloneable
Enclosing class:
RegisteredServiceEndpoint.BlockNodeEndpoint

public static final class RegisteredServiceEndpoint.BlockNodeEndpoint.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<RegisteredServiceEndpoint.BlockNodeEndpoint,RegisteredServiceEndpoint.BlockNodeEndpoint.Builder> implements RegisteredServiceEndpoint.BlockNodeEndpointOrBuilder
 *
 A message indicating this endpoint is a Block Node endpoint.<br/>
 Block Node endpoints offer one of several block node APIs, so this
 endpoint entry also declares which well-known Block Node API is
 supported by this endpoint, or "OTHER" for less common APIs.
 
Protobuf type com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint
  • Method Details

    • getEndpointApiList

       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Specified by:
      getEndpointApiList in interface RegisteredServiceEndpoint.BlockNodeEndpointOrBuilder
      Returns:
      A list containing the endpointApi.
    • getEndpointApiCount

      public int getEndpointApiCount()
       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Specified by:
      getEndpointApiCount in interface RegisteredServiceEndpoint.BlockNodeEndpointOrBuilder
      Returns:
      The count of endpointApi.
    • getEndpointApi

       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Specified by:
      getEndpointApi in interface RegisteredServiceEndpoint.BlockNodeEndpointOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The endpointApi at the given index.
    • setEndpointApi

       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Parameters:
      index - The index to set the value at.
      value - The endpointApi to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • addEndpointApi

       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Parameters:
      value - The endpointApi to add.
      Returns:
      This builder for chaining.
    • addAllEndpointApi

       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Parameters:
      values - The endpointApi to add.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • clearEndpointApi

       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Returns:
      This builder for chaining.
    • getEndpointApiValueList

      public List<Integer> getEndpointApiValueList()
       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Specified by:
      getEndpointApiValueList in interface RegisteredServiceEndpoint.BlockNodeEndpointOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for endpointApi.
    • getEndpointApiValue

      public int getEndpointApiValue(int index)
       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Specified by:
      getEndpointApiValue in interface RegisteredServiceEndpoint.BlockNodeEndpointOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of endpointApi at the given index.
    • setEndpointApiValue

      public RegisteredServiceEndpoint.BlockNodeEndpoint.Builder setEndpointApiValue(int index, int value)
       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for endpointApi to set.
      Returns:
      This builder for chaining.
    • addEndpointApiValue

      public RegisteredServiceEndpoint.BlockNodeEndpoint.Builder addEndpointApiValue(int value)
       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Parameters:
      value - The enum numeric value on the wire for endpointApi to add.
      Returns:
      This builder for chaining.
    • addAllEndpointApiValue

      public RegisteredServiceEndpoint.BlockNodeEndpoint.Builder addAllEndpointApiValue(Iterable<Integer> values)
       *
       An indicator of what API this endpoint supports.
       <p>
       This field is REQUIRED.
       
      repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi endpoint_api = 1;
      Parameters:
      values - The enum numeric values on the wire for endpointApi to add.
      Returns:
      This builder for chaining.