Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllEndpointApi(Iterable<? extends RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi> values) * An indicator of what API this endpoint supports.addAllEndpointApiValue(Iterable<Integer> values) * An indicator of what API this endpoint supports.* An indicator of what API this endpoint supports.addEndpointApiValue(int value) * An indicator of what API this endpoint supports.* An indicator of what API this endpoint supports.getEndpointApi(int index) * An indicator of what API this endpoint supports.int* An indicator of what API this endpoint supports.* An indicator of what API this endpoint supports.intgetEndpointApiValue(int index) * An indicator of what API this endpoint supports.* An indicator of what API this endpoint supports.setEndpointApi(int index, RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi value) * An indicator of what API this endpoint supports.setEndpointApiValue(int index, int value) * An indicator of what API this endpoint supports.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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:
getEndpointApiListin interfaceRegisteredServiceEndpoint.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:
getEndpointApiCountin interfaceRegisteredServiceEndpoint.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:
getEndpointApiin interfaceRegisteredServiceEndpoint.BlockNodeEndpointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The endpointApi at the given index.
-
setEndpointApi
public RegisteredServiceEndpoint.BlockNodeEndpoint.Builder setEndpointApi(int index, RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi 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 endpointApi to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
addEndpointApi
public RegisteredServiceEndpoint.BlockNodeEndpoint.Builder addEndpointApi(RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi 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 endpointApi to add.- Returns:
- This builder for chaining.
-
addAllEndpointApi
public RegisteredServiceEndpoint.BlockNodeEndpoint.Builder addAllEndpointApi(Iterable<? extends RegisteredServiceEndpoint.BlockNodeEndpoint.BlockNodeApi> 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 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
* 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:
getEndpointApiValueListin interfaceRegisteredServiceEndpoint.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:
getEndpointApiValuein interfaceRegisteredServiceEndpoint.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
* 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.
-