Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class RegisteredNodeCreateTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<RegisteredNodeCreateTransactionBody,RegisteredNodeCreateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<RegisteredNodeCreateTransactionBody,RegisteredNodeCreateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.RegisteredNodeCreateTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,RegisteredNodeCreateTransactionBodyOrBuilder,Cloneable
- Enclosing class:
RegisteredNodeCreateTransactionBody
public static final class RegisteredNodeCreateTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<RegisteredNodeCreateTransactionBody,RegisteredNodeCreateTransactionBody.Builder>
implements RegisteredNodeCreateTransactionBodyOrBuilder
* A transaction body to create a new registered node in the network address book. This transaction, once complete, SHALL add a new registered node to the network state. The new registered node SHALL be visible and discoverable upon completion of this transaction. ### Block Stream Effects None.Protobuf type
com.hedera.hapi.node.addressbook.RegisteredNodeCreateTransactionBody-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllServiceEndpoint(Iterable<? extends RegisteredServiceEndpoint> values) * A list of service endpoints for client calls.addServiceEndpoint(int index, RegisteredServiceEndpoint value) * A list of service endpoints for client calls.addServiceEndpoint(int index, RegisteredServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls.* A list of service endpoints for client calls.addServiceEndpoint(RegisteredServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls.* An administrative key controlled by the node operator.* A short description of the node.* A list of service endpoints for client calls.* An administrative key controlled by the node operator.* A short description of the node.com.google.protobuf.ByteString* A short description of the node.getServiceEndpoint(int index) * A list of service endpoints for client calls.int* A list of service endpoints for client calls.* A list of service endpoints for client calls.boolean* An administrative key controlled by the node operator.mergeAdminKey(Key value) * An administrative key controlled by the node operator.removeServiceEndpoint(int index) * A list of service endpoints for client calls.setAdminKey(Key value) * An administrative key controlled by the node operator.setAdminKey(Key.Builder builderForValue) * An administrative key controlled by the node operator.setDescription(String value) * A short description of the node.setDescriptionBytes(com.google.protobuf.ByteString value) * A short description of the node.setServiceEndpoint(int index, RegisteredServiceEndpoint value) * A list of service endpoints for client calls.setServiceEndpoint(int index, RegisteredServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls.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
-
hasAdminKey
public boolean hasAdminKey()* An administrative key controlled by the node operator. <p> This key MUST sign this transaction.<br/> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.<br/> It is RECOMMENDED that this key be composed of one or more unique public keys that are not associated with any network account.<br/> This key MAY be a complex key containing `KeyList` or `ThresholdKey` elements, but SHOULD NOT be a contract ID key.
.proto.Key admin_key = 1;- Specified by:
hasAdminKeyin interfaceRegisteredNodeCreateTransactionBodyOrBuilder- Returns:
- Whether the adminKey field is set.
-
getAdminKey
* An administrative key controlled by the node operator. <p> This key MUST sign this transaction.<br/> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.<br/> It is RECOMMENDED that this key be composed of one or more unique public keys that are not associated with any network account.<br/> This key MAY be a complex key containing `KeyList` or `ThresholdKey` elements, but SHOULD NOT be a contract ID key.
.proto.Key admin_key = 1;- Specified by:
getAdminKeyin interfaceRegisteredNodeCreateTransactionBodyOrBuilder- Returns:
- The adminKey.
-
setAdminKey
* An administrative key controlled by the node operator. <p> This key MUST sign this transaction.<br/> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.<br/> It is RECOMMENDED that this key be composed of one or more unique public keys that are not associated with any network account.<br/> This key MAY be a complex key containing `KeyList` or `ThresholdKey` elements, but SHOULD NOT be a contract ID key.
.proto.Key admin_key = 1; -
setAdminKey
* An administrative key controlled by the node operator. <p> This key MUST sign this transaction.<br/> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.<br/> It is RECOMMENDED that this key be composed of one or more unique public keys that are not associated with any network account.<br/> This key MAY be a complex key containing `KeyList` or `ThresholdKey` elements, but SHOULD NOT be a contract ID key.
.proto.Key admin_key = 1; -
mergeAdminKey
* An administrative key controlled by the node operator. <p> This key MUST sign this transaction.<br/> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.<br/> It is RECOMMENDED that this key be composed of one or more unique public keys that are not associated with any network account.<br/> This key MAY be a complex key containing `KeyList` or `ThresholdKey` elements, but SHOULD NOT be a contract ID key.
.proto.Key admin_key = 1; -
clearAdminKey
* An administrative key controlled by the node operator. <p> This key MUST sign this transaction.<br/> This key MUST sign each transaction to update this node.<br/> This field MUST contain a valid `Key` value.<br/> This field is REQUIRED and MUST NOT be set to an empty `KeyList`.<br/> It is RECOMMENDED that this key be composed of one or more unique public keys that are not associated with any network account.<br/> This key MAY be a complex key containing `KeyList` or `ThresholdKey` elements, but SHOULD NOT be a contract ID key.
.proto.Key admin_key = 1; -
getDescription
* A short description of the node. <p> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> This field is OPTIONAL.
string description = 2;- Specified by:
getDescriptionin interfaceRegisteredNodeCreateTransactionBodyOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()* A short description of the node. <p> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> This field is OPTIONAL.
string description = 2;- Specified by:
getDescriptionBytesin interfaceRegisteredNodeCreateTransactionBodyOrBuilder- Returns:
- The bytes for description.
-
setDescription
* A short description of the node. <p> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> This field is OPTIONAL.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
* A short description of the node. <p> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> This field is OPTIONAL.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public RegisteredNodeCreateTransactionBody.Builder setDescriptionBytes(com.google.protobuf.ByteString value) * A short description of the node. <p> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> This field is OPTIONAL.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getServiceEndpointList
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;- Specified by:
getServiceEndpointListin interfaceRegisteredNodeCreateTransactionBodyOrBuilder
-
getServiceEndpointCount
public int getServiceEndpointCount()* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;- Specified by:
getServiceEndpointCountin interfaceRegisteredNodeCreateTransactionBodyOrBuilder
-
getServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;- Specified by:
getServiceEndpointin interfaceRegisteredNodeCreateTransactionBodyOrBuilder
-
setServiceEndpoint
public RegisteredNodeCreateTransactionBody.Builder setServiceEndpoint(int index, RegisteredServiceEndpoint value) * A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3; -
setServiceEndpoint
public RegisteredNodeCreateTransactionBody.Builder setServiceEndpoint(int index, RegisteredServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3; -
addServiceEndpoint
public RegisteredNodeCreateTransactionBody.Builder addServiceEndpoint(RegisteredServiceEndpoint value) * A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3; -
addServiceEndpoint
public RegisteredNodeCreateTransactionBody.Builder addServiceEndpoint(int index, RegisteredServiceEndpoint value) * A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3; -
addServiceEndpoint
public RegisteredNodeCreateTransactionBody.Builder addServiceEndpoint(RegisteredServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3; -
addServiceEndpoint
public RegisteredNodeCreateTransactionBody.Builder addServiceEndpoint(int index, RegisteredServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3; -
addAllServiceEndpoint
public RegisteredNodeCreateTransactionBody.Builder addAllServiceEndpoint(Iterable<? extends RegisteredServiceEndpoint> values) * A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3; -
clearServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3; -
removeServiceEndpoint
* A list of service endpoints for client calls. <p> These endpoints SHALL represent the published endpoints to which clients may submit requests.<br/> Endpoints in this list MAY supply either IP address or FQDN, but MUST NOT supply both values for the same endpoint.<br/> Multiple endpoints in this list MAY resolve to the same interface.<br/> One Registered Node MAY expose endpoints for multiple service types.<br/> This list MUST NOT be empty.<br/> This list MUST NOT contain more than `50` entries.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 3;
-