Package p4.v1
Interface P4RuntimeOuterClass.WriteRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
P4RuntimeOuterClass.WriteRequest,P4RuntimeOuterClass.WriteRequest.Builder
- Enclosing class:
P4RuntimeOuterClass
public static interface P4RuntimeOuterClass.WriteRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescription.p4.v1.WriteRequest.Atomicity atomicity = 5;int.p4.v1.WriteRequest.Atomicity atomicity = 5;longuint64 device_id = 1;.p4.v1.Uint128 election_id = 3;.p4.v1.Uint128 election_id = 3;getRole()Added in v1.4.0com.google.protobuf.ByteStringAdded in v1.4.0longDeprecated.p4.v1.WriteRequest.role_id is deprecated.getUpdates(int index) The write batch, comprising a list of Update operations.intThe write batch, comprising a list of Update operations.The write batch, comprising a list of Update operations.getUpdatesOrBuilder(int index) The write batch, comprising a list of Update operations.List<? extends P4RuntimeOuterClass.UpdateOrBuilder> The write batch, comprising a list of Update operations.boolean.p4.v1.Uint128 election_id = 3;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDeviceId
long getDeviceId()uint64 device_id = 1;- Returns:
- The deviceId.
-
getRoleId
Deprecated.p4.v1.WriteRequest.role_id is deprecated. See p4/v1/p4runtime.proto;l=63Deprecated in v1.4.0
uint64 role_id = 2 [deprecated = true];- Returns:
- The roleId.
-
getRole
String getRole()Added in v1.4.0
string role = 6;- Returns:
- The role.
-
getRoleBytes
com.google.protobuf.ByteString getRoleBytes()Added in v1.4.0
string role = 6;- Returns:
- The bytes for role.
-
hasElectionId
boolean hasElectionId().p4.v1.Uint128 election_id = 3;- Returns:
- Whether the electionId field is set.
-
getElectionId
P4RuntimeOuterClass.Uint128 getElectionId().p4.v1.Uint128 election_id = 3;- Returns:
- The electionId.
-
getElectionIdOrBuilder
P4RuntimeOuterClass.Uint128OrBuilder getElectionIdOrBuilder().p4.v1.Uint128 election_id = 3; -
getUpdatesList
List<P4RuntimeOuterClass.Update> getUpdatesList()The write batch, comprising a list of Update operations. The P4Runtime server may arbitrarily reorder messages within a batch to maximize performance.
repeated .p4.v1.Update updates = 4; -
getUpdates
The write batch, comprising a list of Update operations. The P4Runtime server may arbitrarily reorder messages within a batch to maximize performance.
repeated .p4.v1.Update updates = 4; -
getUpdatesCount
int getUpdatesCount()The write batch, comprising a list of Update operations. The P4Runtime server may arbitrarily reorder messages within a batch to maximize performance.
repeated .p4.v1.Update updates = 4; -
getUpdatesOrBuilderList
List<? extends P4RuntimeOuterClass.UpdateOrBuilder> getUpdatesOrBuilderList()The write batch, comprising a list of Update operations. The P4Runtime server may arbitrarily reorder messages within a batch to maximize performance.
repeated .p4.v1.Update updates = 4; -
getUpdatesOrBuilder
The write batch, comprising a list of Update operations. The P4Runtime server may arbitrarily reorder messages within a batch to maximize performance.
repeated .p4.v1.Update updates = 4; -
getAtomicityValue
int getAtomicityValue().p4.v1.WriteRequest.Atomicity atomicity = 5;- Returns:
- The enum numeric value on the wire for atomicity.
-
getAtomicity
P4RuntimeOuterClass.WriteRequest.Atomicity getAtomicity().p4.v1.WriteRequest.Atomicity atomicity = 5;- Returns:
- The atomicity.
-