Package p4.v1
Class P4RuntimeOuterClass.WriteRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.WriteRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.WriteRequest.Builder>
p4.v1.P4RuntimeOuterClass.WriteRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,P4RuntimeOuterClass.WriteRequestOrBuilder
- Enclosing class:
P4RuntimeOuterClass.WriteRequest
public static final class P4RuntimeOuterClass.WriteRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.WriteRequest.Builder>
implements P4RuntimeOuterClass.WriteRequestOrBuilder
------------------------------------------------------------------------------Protobuf type
p4.v1.WriteRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllUpdates(Iterable<? extends P4RuntimeOuterClass.Update> values) The write batch, comprising a list of Update operations.addUpdates(int index, P4RuntimeOuterClass.Update value) The write batch, comprising a list of Update operations.addUpdates(int index, P4RuntimeOuterClass.Update.Builder builderForValue) The write batch, comprising a list of Update operations.The write batch, comprising a list of Update operations.addUpdates(P4RuntimeOuterClass.Update.Builder builderForValue) The write batch, comprising a list of Update operations.The write batch, comprising a list of Update operations.addUpdatesBuilder(int index) The write batch, comprising a list of Update operations.build()clear().p4.v1.WriteRequest.Atomicity atomicity = 5;uint64 device_id = 1;.p4.v1.Uint128 election_id = 3;Added in v1.4.0Deprecated.p4.v1.WriteRequest.role_id is deprecated.The write batch, comprising a list of Update operations..p4.v1.WriteRequest.Atomicity atomicity = 5;int.p4.v1.WriteRequest.Atomicity atomicity = 5;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorlonguint64 device_id = 1;.p4.v1.Uint128 election_id = 3;.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.getUpdatesBuilder(int index) The write batch, comprising a list of Update operations.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;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal boolean.p4.v1.Uint128 election_id = 3;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeUpdates(int index) The write batch, comprising a list of Update operations..p4.v1.WriteRequest.Atomicity atomicity = 5;setAtomicityValue(int value) .p4.v1.WriteRequest.Atomicity atomicity = 5;setDeviceId(long value) uint64 device_id = 1;.p4.v1.Uint128 election_id = 3;setElectionId(P4RuntimeOuterClass.Uint128.Builder builderForValue) .p4.v1.Uint128 election_id = 3;Added in v1.4.0setRoleBytes(com.google.protobuf.ByteString value) Added in v1.4.0setRoleId(long value) Deprecated.p4.v1.WriteRequest.role_id is deprecated.setUpdates(int index, P4RuntimeOuterClass.Update value) The write batch, comprising a list of Update operations.setUpdates(int index, P4RuntimeOuterClass.Update.Builder builderForValue) The write batch, comprising a list of Update operations.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.WriteRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.WriteRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.WriteRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.WriteRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<P4RuntimeOuterClass.WriteRequest.Builder>
-
mergeFrom
public P4RuntimeOuterClass.WriteRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<P4RuntimeOuterClass.WriteRequest.Builder>- Throws:
IOException
-
getDeviceId
public long getDeviceId()uint64 device_id = 1;- Specified by:
getDeviceIdin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder- Returns:
- The deviceId.
-
setDeviceId
uint64 device_id = 1;- Parameters:
value- The deviceId to set.- Returns:
- This builder for chaining.
-
clearDeviceId
uint64 device_id = 1;- Returns:
- This builder for chaining.
-
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];- Specified by:
getRoleIdin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder- Returns:
- The roleId.
-
setRoleId
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];- Parameters:
value- The roleId to set.- Returns:
- This builder for chaining.
-
clearRoleId
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:
- This builder for chaining.
-
getRole
Added in v1.4.0
string role = 6;- Specified by:
getRolein interfaceP4RuntimeOuterClass.WriteRequestOrBuilder- Returns:
- The role.
-
getRoleBytes
public com.google.protobuf.ByteString getRoleBytes()Added in v1.4.0
string role = 6;- Specified by:
getRoleBytesin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder- Returns:
- The bytes for role.
-
setRole
Added in v1.4.0
string role = 6;- Parameters:
value- The role to set.- Returns:
- This builder for chaining.
-
clearRole
Added in v1.4.0
string role = 6;- Returns:
- This builder for chaining.
-
setRoleBytes
Added in v1.4.0
string role = 6;- Parameters:
value- The bytes for role to set.- Returns:
- This builder for chaining.
-
hasElectionId
public boolean hasElectionId().p4.v1.Uint128 election_id = 3;- Specified by:
hasElectionIdin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder- Returns:
- Whether the electionId field is set.
-
getElectionId
.p4.v1.Uint128 election_id = 3;- Specified by:
getElectionIdin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder- Returns:
- The electionId.
-
setElectionId
.p4.v1.Uint128 election_id = 3; -
setElectionId
public P4RuntimeOuterClass.WriteRequest.Builder setElectionId(P4RuntimeOuterClass.Uint128.Builder builderForValue) .p4.v1.Uint128 election_id = 3; -
mergeElectionId
.p4.v1.Uint128 election_id = 3; -
clearElectionId
.p4.v1.Uint128 election_id = 3; -
getElectionIdBuilder
.p4.v1.Uint128 election_id = 3; -
getElectionIdOrBuilder
.p4.v1.Uint128 election_id = 3;- Specified by:
getElectionIdOrBuilderin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder
-
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;- Specified by:
getUpdatesListin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder
-
getUpdatesCount
public 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;- Specified by:
getUpdatesCountin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder
-
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;- Specified by:
getUpdatesin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder
-
setUpdates
public P4RuntimeOuterClass.WriteRequest.Builder setUpdates(int index, P4RuntimeOuterClass.Update value) 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; -
setUpdates
public P4RuntimeOuterClass.WriteRequest.Builder setUpdates(int index, P4RuntimeOuterClass.Update.Builder builderForValue) 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; -
addUpdates
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; -
addUpdates
public P4RuntimeOuterClass.WriteRequest.Builder addUpdates(int index, P4RuntimeOuterClass.Update value) 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; -
addUpdates
public P4RuntimeOuterClass.WriteRequest.Builder addUpdates(P4RuntimeOuterClass.Update.Builder builderForValue) 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; -
addUpdates
public P4RuntimeOuterClass.WriteRequest.Builder addUpdates(int index, P4RuntimeOuterClass.Update.Builder builderForValue) 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; -
addAllUpdates
public P4RuntimeOuterClass.WriteRequest.Builder addAllUpdates(Iterable<? extends P4RuntimeOuterClass.Update> values) 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; -
clearUpdates
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; -
removeUpdates
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; -
getUpdatesBuilder
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;- Specified by:
getUpdatesOrBuilderin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder
-
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;- Specified by:
getUpdatesOrBuilderListin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder
-
addUpdatesBuilder
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; -
addUpdatesBuilder
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; -
getUpdatesBuilderList
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
public int getAtomicityValue().p4.v1.WriteRequest.Atomicity atomicity = 5;- Specified by:
getAtomicityValuein interfaceP4RuntimeOuterClass.WriteRequestOrBuilder- Returns:
- The enum numeric value on the wire for atomicity.
-
setAtomicityValue
.p4.v1.WriteRequest.Atomicity atomicity = 5;- Parameters:
value- The enum numeric value on the wire for atomicity to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getAtomicity
.p4.v1.WriteRequest.Atomicity atomicity = 5;- Specified by:
getAtomicityin interfaceP4RuntimeOuterClass.WriteRequestOrBuilder- Returns:
- The atomicity.
-
setAtomicity
public P4RuntimeOuterClass.WriteRequest.Builder setAtomicity(P4RuntimeOuterClass.WriteRequest.Atomicity value) .p4.v1.WriteRequest.Atomicity atomicity = 5;- Parameters:
value- The atomicity to set.- Returns:
- This builder for chaining.
-
clearAtomicity
.p4.v1.WriteRequest.Atomicity atomicity = 5;- Returns:
- This builder for chaining.
-