Package p4.v1
Interface P4RuntimeOuterClass.RoleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
P4RuntimeOuterClass.Role,P4RuntimeOuterClass.Role.Builder
- Enclosing class:
P4RuntimeOuterClass
public static interface P4RuntimeOuterClass.RoleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.AnyDescribes the role configuration, i.e.com.google.protobuf.AnyOrBuilderDescribes the role configuration, i.e.longgetId()Deprecated.p4.v1.Role.id is deprecated.getName()Added in 1.4.0.com.google.protobuf.ByteStringAdded in 1.4.0.booleanDescribes the role configuration, i.e.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
-
getId
Deprecated.p4.v1.Role.id is deprecated. See p4/v1/p4runtime.proto;l=680Uniquely identifies this role. Deprecated in 1.4.0.
uint64 id = 1 [deprecated = true];- Returns:
- The id.
-
getName
String getName()Added in 1.4.0.
string name = 3;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Added in 1.4.0.
string name = 3;- Returns:
- The bytes for name.
-
hasConfig
boolean hasConfig()Describes the role configuration, i.e. what operations, P4 entities, behaviors, etc. are in the scope of a given role. If config is not set (default case), it implies all P4 objects and control behaviors are in scope, i.e. full pipeline access. The format of this message is out-of-scope of P4Runtime.
.google.protobuf.Any config = 2;- Returns:
- Whether the config field is set.
-
getConfig
com.google.protobuf.Any getConfig()Describes the role configuration, i.e. what operations, P4 entities, behaviors, etc. are in the scope of a given role. If config is not set (default case), it implies all P4 objects and control behaviors are in scope, i.e. full pipeline access. The format of this message is out-of-scope of P4Runtime.
.google.protobuf.Any config = 2;- Returns:
- The config.
-
getConfigOrBuilder
com.google.protobuf.AnyOrBuilder getConfigOrBuilder()Describes the role configuration, i.e. what operations, P4 entities, behaviors, etc. are in the scope of a given role. If config is not set (default case), it implies all P4 objects and control behaviors are in scope, i.e. full pipeline access. The format of this message is out-of-scope of P4Runtime.
.google.protobuf.Any config = 2;
-