Package io.grpc.benchmarks.proto
Class Control.ServerConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grpc.benchmarks.proto.Control.ServerConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Control.ServerConfigOrBuilder,java.io.Serializable
- Enclosing class:
- Control
public static final class Control.ServerConfig extends com.google.protobuf.GeneratedMessageV3 implements Control.ServerConfigOrBuilder
Protobuf typegrpc.testing.ServerConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classControl.ServerConfig.BuilderProtobuf typegrpc.testing.ServerConfig-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intASYNC_SERVER_THREADS_FIELD_NUMBERstatic intCORE_LIMIT_FIELD_NUMBERstatic intCORE_LIST_FIELD_NUMBERstatic intOTHER_SERVER_API_FIELD_NUMBERstatic intPAYLOAD_CONFIG_FIELD_NUMBERstatic intPORT_FIELD_NUMBERstatic intRESOURCE_QUOTA_SIZE_FIELD_NUMBERstatic intSECURITY_PARAMS_FIELD_NUMBERstatic intSERVER_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetAsyncServerThreads()Only for async server.intgetCoreLimit()Specify the number of cores to limit server to, if desiredintgetCoreList(int index)Specify the cores we should run the server on, if desiredintgetCoreListCount()Specify the cores we should run the server on, if desiredjava.util.List<java.lang.Integer>getCoreListList()Specify the cores we should run the server on, if desiredstatic Control.ServerConfiggetDefaultInstance()Control.ServerConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetOtherServerApi()If we use an OTHER_SERVER client_type, this string gives more detailcom.google.protobuf.ByteStringgetOtherServerApiBytes()If we use an OTHER_SERVER client_type, this string gives more detailcom.google.protobuf.Parser<Control.ServerConfig>getParserForType()Payloads.PayloadConfiggetPayloadConfig()payload config, used in generic server.Payloads.PayloadConfigOrBuildergetPayloadConfigOrBuilder()payload config, used in generic server.intgetPort()Port on which to listen.intgetResourceQuotaSize()Buffer pool size (no buffer pool specified if unset)Control.SecurityParamsgetSecurityParams().grpc.testing.SecurityParams security_params = 2;Control.SecurityParamsOrBuildergetSecurityParamsOrBuilder().grpc.testing.SecurityParams security_params = 2;intgetSerializedSize()Control.ServerTypegetServerType().grpc.testing.ServerType server_type = 1;intgetServerTypeValue().grpc.testing.ServerType server_type = 1;inthashCode()booleanhasPayloadConfig()payload config, used in generic server.booleanhasSecurityParams().grpc.testing.SecurityParams security_params = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Control.ServerConfig.BuildernewBuilder()static Control.ServerConfig.BuildernewBuilder(Control.ServerConfig prototype)Control.ServerConfig.BuildernewBuilderForType()protected Control.ServerConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Control.ServerConfigparseDelimitedFrom(java.io.InputStream input)static Control.ServerConfigparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Control.ServerConfigparseFrom(byte[] data)static Control.ServerConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Control.ServerConfigparseFrom(com.google.protobuf.ByteString data)static Control.ServerConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Control.ServerConfigparseFrom(com.google.protobuf.CodedInputStream input)static Control.ServerConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Control.ServerConfigparseFrom(java.io.InputStream input)static Control.ServerConfigparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Control.ServerConfigparseFrom(java.nio.ByteBuffer data)static Control.ServerConfigparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Control.ServerConfig>parser()Control.ServerConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SERVER_TYPE_FIELD_NUMBER
public static final int SERVER_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECURITY_PARAMS_FIELD_NUMBER
public static final int SECURITY_PARAMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ASYNC_SERVER_THREADS_FIELD_NUMBER
public static final int ASYNC_SERVER_THREADS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CORE_LIMIT_FIELD_NUMBER
public static final int CORE_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_CONFIG_FIELD_NUMBER
public static final int PAYLOAD_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CORE_LIST_FIELD_NUMBER
public static final int CORE_LIST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OTHER_SERVER_API_FIELD_NUMBER
public static final int OTHER_SERVER_API_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_QUOTA_SIZE_FIELD_NUMBER
public static final int RESOURCE_QUOTA_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getServerTypeValue
public int getServerTypeValue()
.grpc.testing.ServerType server_type = 1;- Specified by:
getServerTypeValuein interfaceControl.ServerConfigOrBuilder- Returns:
- The enum numeric value on the wire for serverType.
-
getServerType
public Control.ServerType getServerType()
.grpc.testing.ServerType server_type = 1;- Specified by:
getServerTypein interfaceControl.ServerConfigOrBuilder- Returns:
- The serverType.
-
hasSecurityParams
public boolean hasSecurityParams()
.grpc.testing.SecurityParams security_params = 2;- Specified by:
hasSecurityParamsin interfaceControl.ServerConfigOrBuilder- Returns:
- Whether the securityParams field is set.
-
getSecurityParams
public Control.SecurityParams getSecurityParams()
.grpc.testing.SecurityParams security_params = 2;- Specified by:
getSecurityParamsin interfaceControl.ServerConfigOrBuilder- Returns:
- The securityParams.
-
getSecurityParamsOrBuilder
public Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder()
.grpc.testing.SecurityParams security_params = 2;- Specified by:
getSecurityParamsOrBuilderin interfaceControl.ServerConfigOrBuilder
-
getPort
public int getPort()
Port on which to listen. Zero means pick unused port.
int32 port = 4;- Specified by:
getPortin interfaceControl.ServerConfigOrBuilder- Returns:
- The port.
-
getAsyncServerThreads
public int getAsyncServerThreads()
Only for async server. Number of threads used to serve the requests.
int32 async_server_threads = 7;- Specified by:
getAsyncServerThreadsin interfaceControl.ServerConfigOrBuilder- Returns:
- The asyncServerThreads.
-
getCoreLimit
public int getCoreLimit()
Specify the number of cores to limit server to, if desired
int32 core_limit = 8;- Specified by:
getCoreLimitin interfaceControl.ServerConfigOrBuilder- Returns:
- The coreLimit.
-
hasPayloadConfig
public boolean hasPayloadConfig()
payload config, used in generic server. Note this must NOT be used in proto (non-generic) servers. For proto servers, 'response sizes' must be configured from the 'response_size' field of the 'SimpleRequest' objects in RPC requests.
.grpc.testing.PayloadConfig payload_config = 9;- Specified by:
hasPayloadConfigin interfaceControl.ServerConfigOrBuilder- Returns:
- Whether the payloadConfig field is set.
-
getPayloadConfig
public Payloads.PayloadConfig getPayloadConfig()
payload config, used in generic server. Note this must NOT be used in proto (non-generic) servers. For proto servers, 'response sizes' must be configured from the 'response_size' field of the 'SimpleRequest' objects in RPC requests.
.grpc.testing.PayloadConfig payload_config = 9;- Specified by:
getPayloadConfigin interfaceControl.ServerConfigOrBuilder- Returns:
- The payloadConfig.
-
getPayloadConfigOrBuilder
public Payloads.PayloadConfigOrBuilder getPayloadConfigOrBuilder()
payload config, used in generic server. Note this must NOT be used in proto (non-generic) servers. For proto servers, 'response sizes' must be configured from the 'response_size' field of the 'SimpleRequest' objects in RPC requests.
.grpc.testing.PayloadConfig payload_config = 9;- Specified by:
getPayloadConfigOrBuilderin interfaceControl.ServerConfigOrBuilder
-
getCoreListList
public java.util.List<java.lang.Integer> getCoreListList()
Specify the cores we should run the server on, if desired
repeated int32 core_list = 10;- Specified by:
getCoreListListin interfaceControl.ServerConfigOrBuilder- Returns:
- A list containing the coreList.
-
getCoreListCount
public int getCoreListCount()
Specify the cores we should run the server on, if desired
repeated int32 core_list = 10;- Specified by:
getCoreListCountin interfaceControl.ServerConfigOrBuilder- Returns:
- The count of coreList.
-
getCoreList
public int getCoreList(int index)
Specify the cores we should run the server on, if desired
repeated int32 core_list = 10;- Specified by:
getCoreListin interfaceControl.ServerConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The coreList at the given index.
-
getOtherServerApi
public java.lang.String getOtherServerApi()
If we use an OTHER_SERVER client_type, this string gives more detail
string other_server_api = 11;- Specified by:
getOtherServerApiin interfaceControl.ServerConfigOrBuilder- Returns:
- The otherServerApi.
-
getOtherServerApiBytes
public com.google.protobuf.ByteString getOtherServerApiBytes()
If we use an OTHER_SERVER client_type, this string gives more detail
string other_server_api = 11;- Specified by:
getOtherServerApiBytesin interfaceControl.ServerConfigOrBuilder- Returns:
- The bytes for otherServerApi.
-
getResourceQuotaSize
public int getResourceQuotaSize()
Buffer pool size (no buffer pool specified if unset)
int32 resource_quota_size = 1001;- Specified by:
getResourceQuotaSizein interfaceControl.ServerConfigOrBuilder- Returns:
- The resourceQuotaSize.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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 Control.ServerConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Control.ServerConfig parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Control.ServerConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Control.ServerConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Control.ServerConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Control.ServerConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Control.ServerConfig parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Control.ServerConfig parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Control.ServerConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Control.ServerConfig parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Control.ServerConfig parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Control.ServerConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Control.ServerConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Control.ServerConfig.Builder newBuilder()
-
newBuilder
public static Control.ServerConfig.Builder newBuilder(Control.ServerConfig prototype)
-
toBuilder
public Control.ServerConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Control.ServerConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Control.ServerConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Control.ServerConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<Control.ServerConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Control.ServerConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-