Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class RegisteredNodeUpdateTransactionBody.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<RegisteredNodeUpdateTransactionBody,RegisteredNodeUpdateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<RegisteredNodeUpdateTransactionBody,RegisteredNodeUpdateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.RegisteredNodeUpdateTransactionBody.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,RegisteredNodeUpdateTransactionBodyOrBuilder,Cloneable
- Enclosing class:
RegisteredNodeUpdateTransactionBody
public static final class RegisteredNodeUpdateTransactionBody.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<RegisteredNodeUpdateTransactionBody,RegisteredNodeUpdateTransactionBody.Builder>
implements RegisteredNodeUpdateTransactionBodyOrBuilder
* A transaction body to update an existing registered node in the network address book. This transaction, once complete, SHALL modify the identified registered node state as requested. ### Block Stream Effects None.Protobuf type
com.hedera.hapi.node.addressbook.RegisteredNodeUpdateTransactionBody-
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 registered node identifier in the network state.* A list of service endpoints for client calls.* An administrative key controlled by the node operator.com.google.protobuf.StringValue* A short description of the node.long* A registered node identifier in the network state.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.boolean* A short description of the node.mergeAdminKey(Key value) * An administrative key controlled by the node operator.mergeDescription(com.google.protobuf.StringValue value) * A short description of the node.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(com.google.protobuf.StringValue value) * A short description of the node.setDescription(com.google.protobuf.StringValue.Builder builderForValue) * A short description of the node.setRegisteredNodeId(long value) * A registered node identifier in the network state.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
-
getRegisteredNodeId
public long getRegisteredNodeId()* A registered node identifier in the network state. <p> The node identified MUST exist in the registered address book.<br/> The node identified MUST NOT be deleted.<br/> This value is REQUIRED. <p> A given value for `registered_node_id` SHALL be unique within a given shard or realm.<br/> A given value for `registered_node_id` SHALL NOT be reused, even if the corresponding entry is deleted.
uint64 registered_node_id = 1;- Specified by:
getRegisteredNodeIdin interfaceRegisteredNodeUpdateTransactionBodyOrBuilder- Returns:
- The registeredNodeId.
-
setRegisteredNodeId
* A registered node identifier in the network state. <p> The node identified MUST exist in the registered address book.<br/> The node identified MUST NOT be deleted.<br/> This value is REQUIRED. <p> A given value for `registered_node_id` SHALL be unique within a given shard or realm.<br/> A given value for `registered_node_id` SHALL NOT be reused, even if the corresponding entry is deleted.
uint64 registered_node_id = 1;- Parameters:
value- The registeredNodeId to set.- Returns:
- This builder for chaining.
-
clearRegisteredNodeId
* A registered node identifier in the network state. <p> The node identified MUST exist in the registered address book.<br/> The node identified MUST NOT be deleted.<br/> This value is REQUIRED. <p> A given value for `registered_node_id` SHALL be unique within a given shard or realm.<br/> A given value for `registered_node_id` SHALL NOT be reused, even if the corresponding entry is deleted.
uint64 registered_node_id = 1;- Returns:
- This builder for chaining.
-
hasAdminKey
public boolean hasAdminKey()* An administrative key controlled by the node operator. <p> This field is OPTIONAL.<br/> If set, this key MUST sign this transaction.<br/> If set, this key MUST sign each subsequent transaction to update this node.<br/> If set, this field MUST contain a valid `Key` value.<br/> If set, this field 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 = 2;- Specified by:
hasAdminKeyin interfaceRegisteredNodeUpdateTransactionBodyOrBuilder- Returns:
- Whether the adminKey field is set.
-
getAdminKey
* An administrative key controlled by the node operator. <p> This field is OPTIONAL.<br/> If set, this key MUST sign this transaction.<br/> If set, this key MUST sign each subsequent transaction to update this node.<br/> If set, this field MUST contain a valid `Key` value.<br/> If set, this field 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 = 2;- Specified by:
getAdminKeyin interfaceRegisteredNodeUpdateTransactionBodyOrBuilder- Returns:
- The adminKey.
-
setAdminKey
* An administrative key controlled by the node operator. <p> This field is OPTIONAL.<br/> If set, this key MUST sign this transaction.<br/> If set, this key MUST sign each subsequent transaction to update this node.<br/> If set, this field MUST contain a valid `Key` value.<br/> If set, this field 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 = 2; -
setAdminKey
* An administrative key controlled by the node operator. <p> This field is OPTIONAL.<br/> If set, this key MUST sign this transaction.<br/> If set, this key MUST sign each subsequent transaction to update this node.<br/> If set, this field MUST contain a valid `Key` value.<br/> If set, this field 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 = 2; -
mergeAdminKey
* An administrative key controlled by the node operator. <p> This field is OPTIONAL.<br/> If set, this key MUST sign this transaction.<br/> If set, this key MUST sign each subsequent transaction to update this node.<br/> If set, this field MUST contain a valid `Key` value.<br/> If set, this field 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 = 2; -
clearAdminKey
* An administrative key controlled by the node operator. <p> This field is OPTIONAL.<br/> If set, this key MUST sign this transaction.<br/> If set, this key MUST sign each subsequent transaction to update this node.<br/> If set, this field MUST contain a valid `Key` value.<br/> If set, this field 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 = 2; -
hasDescription
public boolean hasDescription()* A short description of the node. <p> This field is OPTIONAL.<br/> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> If set, this value SHALL replace the previous value.
.google.protobuf.StringValue description = 3;- Specified by:
hasDescriptionin interfaceRegisteredNodeUpdateTransactionBodyOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
public com.google.protobuf.StringValue getDescription()* A short description of the node. <p> This field is OPTIONAL.<br/> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> If set, this value SHALL replace the previous value.
.google.protobuf.StringValue description = 3;- Specified by:
getDescriptionin interfaceRegisteredNodeUpdateTransactionBodyOrBuilder- Returns:
- The description.
-
setDescription
public RegisteredNodeUpdateTransactionBody.Builder setDescription(com.google.protobuf.StringValue value) * A short description of the node. <p> This field is OPTIONAL.<br/> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> If set, this value SHALL replace the previous value.
.google.protobuf.StringValue description = 3; -
setDescription
public RegisteredNodeUpdateTransactionBody.Builder setDescription(com.google.protobuf.StringValue.Builder builderForValue) * A short description of the node. <p> This field is OPTIONAL.<br/> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> If set, this value SHALL replace the previous value.
.google.protobuf.StringValue description = 3; -
mergeDescription
public RegisteredNodeUpdateTransactionBody.Builder mergeDescription(com.google.protobuf.StringValue value) * A short description of the node. <p> This field is OPTIONAL.<br/> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> If set, this value SHALL replace the previous value.
.google.protobuf.StringValue description = 3; -
clearDescription
* A short description of the node. <p> This field is OPTIONAL.<br/> This value, if set, MUST NOT exceed 100 bytes when encoded as UTF-8.<br/> If set, this value SHALL replace the previous value.
.google.protobuf.StringValue description = 3; -
getServiceEndpointList
* A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;- Specified by:
getServiceEndpointListin interfaceRegisteredNodeUpdateTransactionBodyOrBuilder
-
getServiceEndpointCount
public int getServiceEndpointCount()* A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;- Specified by:
getServiceEndpointCountin interfaceRegisteredNodeUpdateTransactionBodyOrBuilder
-
getServiceEndpoint
* A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;- Specified by:
getServiceEndpointin interfaceRegisteredNodeUpdateTransactionBodyOrBuilder
-
setServiceEndpoint
public RegisteredNodeUpdateTransactionBody.Builder setServiceEndpoint(int index, RegisteredServiceEndpoint value) * A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4; -
setServiceEndpoint
public RegisteredNodeUpdateTransactionBody.Builder setServiceEndpoint(int index, RegisteredServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4; -
addServiceEndpoint
public RegisteredNodeUpdateTransactionBody.Builder addServiceEndpoint(RegisteredServiceEndpoint value) * A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4; -
addServiceEndpoint
public RegisteredNodeUpdateTransactionBody.Builder addServiceEndpoint(int index, RegisteredServiceEndpoint value) * A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4; -
addServiceEndpoint
public RegisteredNodeUpdateTransactionBody.Builder addServiceEndpoint(RegisteredServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4; -
addServiceEndpoint
public RegisteredNodeUpdateTransactionBody.Builder addServiceEndpoint(int index, RegisteredServiceEndpoint.Builder builderForValue) * A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4; -
addAllServiceEndpoint
public RegisteredNodeUpdateTransactionBody.Builder addAllServiceEndpoint(Iterable<? extends RegisteredServiceEndpoint> values) * A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4; -
clearServiceEndpoint
* A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4; -
removeServiceEndpoint
* A list of service endpoints for client calls. <p> This field is OPTIONAL.<br/> 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/> One Registered Node MAY expose endpoints for multiple service types.<br/> If set, this list MUST NOT be empty.<br/> If set, this list MUST NOT contain more than `50` entries.<br/> If set, this list SHALL _replace_ the previous list.
repeated .com.hedera.hapi.node.addressbook.RegisteredServiceEndpoint service_endpoint = 4;
-