Package p4.v1
Class P4RuntimeOuterClass.Role
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
p4.v1.P4RuntimeOuterClass.Role
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,P4RuntimeOuterClass.RoleOrBuilder
- Enclosing class:
P4RuntimeOuterClass
public static final class P4RuntimeOuterClass.Role
extends com.google.protobuf.GeneratedMessage
implements P4RuntimeOuterClass.RoleOrBuilder
Protobuf type
p4.v1.Role- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typep4.v1.RoleNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.AnyDescribes the role configuration, i.e.com.google.protobuf.AnyOrBuilderDescribes the role configuration, i.e.static P4RuntimeOuterClass.Rolestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()Deprecated.p4.v1.Role.id is deprecated.getName()Added in 1.4.0.com.google.protobuf.ByteStringAdded in 1.4.0.com.google.protobuf.Parser<P4RuntimeOuterClass.Role> intbooleanDescribes the role configuration, i.e.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(P4RuntimeOuterClass.Role prototype) protected P4RuntimeOuterClass.Role.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static P4RuntimeOuterClass.RoleparseDelimitedFrom(InputStream input) static P4RuntimeOuterClass.RoleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4RuntimeOuterClass.RoleparseFrom(byte[] data) static P4RuntimeOuterClass.RoleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4RuntimeOuterClass.RoleparseFrom(com.google.protobuf.ByteString data) static P4RuntimeOuterClass.RoleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4RuntimeOuterClass.RoleparseFrom(com.google.protobuf.CodedInputStream input) static P4RuntimeOuterClass.RoleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4RuntimeOuterClass.RoleparseFrom(InputStream input) static P4RuntimeOuterClass.RoleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4RuntimeOuterClass.RoleparseFrom(ByteBuffer data) static P4RuntimeOuterClass.RoleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<P4RuntimeOuterClass.Role> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
CONFIG_FIELD_NUMBER
public static final int CONFIG_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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];- Specified by:
getIdin interfaceP4RuntimeOuterClass.RoleOrBuilder- Returns:
- The id.
-
getName
Added in 1.4.0.
string name = 3;- Specified by:
getNamein interfaceP4RuntimeOuterClass.RoleOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Added in 1.4.0.
string name = 3;- Specified by:
getNameBytesin interfaceP4RuntimeOuterClass.RoleOrBuilder- Returns:
- The bytes for name.
-
hasConfig
public 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;- Specified by:
hasConfigin interfaceP4RuntimeOuterClass.RoleOrBuilder- Returns:
- Whether the config field is set.
-
getConfig
public 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;- Specified by:
getConfigin interfaceP4RuntimeOuterClass.RoleOrBuilder- Returns:
- The config.
-
getConfigOrBuilder
public 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;- Specified by:
getConfigOrBuilderin interfaceP4RuntimeOuterClass.RoleOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static P4RuntimeOuterClass.Role parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.Role parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.Role parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.Role parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.Role parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4RuntimeOuterClass.Role parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static P4RuntimeOuterClass.Role parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static P4RuntimeOuterClass.Role parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static P4RuntimeOuterClass.Role parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static P4RuntimeOuterClass.Role parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected P4RuntimeOuterClass.Role.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-