public static final class Control.ServerConfig extends com.google.protobuf.GeneratedMessageV3 implements Control.ServerConfigOrBuilder
grpc.testing.ServerConfig| Modifier and Type | Class and Description |
|---|---|
static class |
Control.ServerConfig.Builder
Protobuf type
grpc.testing.ServerConfig |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ASYNC_SERVER_THREADS_FIELD_NUMBER |
static int |
CORE_LIMIT_FIELD_NUMBER |
static int |
CORE_LIST_FIELD_NUMBER |
static int |
OTHER_SERVER_API_FIELD_NUMBER |
static int |
PAYLOAD_CONFIG_FIELD_NUMBER |
static int |
PORT_FIELD_NUMBER |
static int |
RESOURCE_QUOTA_SIZE_FIELD_NUMBER |
static int |
SECURITY_PARAMS_FIELD_NUMBER |
static int |
SERVER_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getAsyncServerThreads()
Only for async server.
|
int |
getCoreLimit()
Specify the number of cores to limit server to, if desired
|
int |
getCoreList(int index)
Specify the cores we should run the server on, if desired
|
int |
getCoreListCount()
Specify the cores we should run the server on, if desired
|
List<Integer> |
getCoreListList()
Specify the cores we should run the server on, if desired
|
static Control.ServerConfig |
getDefaultInstance() |
Control.ServerConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getOtherServerApi()
If we use an OTHER_SERVER client_type, this string gives more detail
|
com.google.protobuf.ByteString |
getOtherServerApiBytes()
If we use an OTHER_SERVER client_type, this string gives more detail
|
com.google.protobuf.Parser<Control.ServerConfig> |
getParserForType() |
Payloads.PayloadConfig |
getPayloadConfig()
payload config, used in generic server.
|
Payloads.PayloadConfigOrBuilder |
getPayloadConfigOrBuilder()
payload config, used in generic server.
|
int |
getPort()
Port on which to listen.
|
int |
getResourceQuotaSize()
Buffer pool size (no buffer pool specified if unset)
|
Control.SecurityParams |
getSecurityParams()
.grpc.testing.SecurityParams security_params = 2; |
Control.SecurityParamsOrBuilder |
getSecurityParamsOrBuilder()
.grpc.testing.SecurityParams security_params = 2; |
int |
getSerializedSize() |
Control.ServerType |
getServerType()
.grpc.testing.ServerType server_type = 1; |
int |
getServerTypeValue()
.grpc.testing.ServerType server_type = 1; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasPayloadConfig()
payload config, used in generic server.
|
boolean |
hasSecurityParams()
.grpc.testing.SecurityParams security_params = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Control.ServerConfig.Builder |
newBuilder() |
static Control.ServerConfig.Builder |
newBuilder(Control.ServerConfig prototype) |
Control.ServerConfig.Builder |
newBuilderForType() |
protected Control.ServerConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Control.ServerConfig |
parseDelimitedFrom(InputStream input) |
static Control.ServerConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Control.ServerConfig |
parseFrom(byte[] data) |
static Control.ServerConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Control.ServerConfig |
parseFrom(ByteBuffer data) |
static Control.ServerConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Control.ServerConfig |
parseFrom(com.google.protobuf.ByteString data) |
static Control.ServerConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Control.ServerConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Control.ServerConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Control.ServerConfig |
parseFrom(InputStream input) |
static Control.ServerConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Control.ServerConfig> |
parser() |
Control.ServerConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SERVER_TYPE_FIELD_NUMBER
public static final int SECURITY_PARAMS_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
public static final int ASYNC_SERVER_THREADS_FIELD_NUMBER
public static final int CORE_LIMIT_FIELD_NUMBER
public static final int PAYLOAD_CONFIG_FIELD_NUMBER
public static final int CORE_LIST_FIELD_NUMBER
public static final int OTHER_SERVER_API_FIELD_NUMBER
public static final int RESOURCE_QUOTA_SIZE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getServerTypeValue()
.grpc.testing.ServerType server_type = 1;getServerTypeValue in interface Control.ServerConfigOrBuilderpublic Control.ServerType getServerType()
.grpc.testing.ServerType server_type = 1;getServerType in interface Control.ServerConfigOrBuilderpublic boolean hasSecurityParams()
.grpc.testing.SecurityParams security_params = 2;hasSecurityParams in interface Control.ServerConfigOrBuilderpublic Control.SecurityParams getSecurityParams()
.grpc.testing.SecurityParams security_params = 2;getSecurityParams in interface Control.ServerConfigOrBuilderpublic Control.SecurityParamsOrBuilder getSecurityParamsOrBuilder()
.grpc.testing.SecurityParams security_params = 2;getSecurityParamsOrBuilder in interface Control.ServerConfigOrBuilderpublic int getPort()
Port on which to listen. Zero means pick unused port.
int32 port = 4;getPort in interface Control.ServerConfigOrBuilderpublic int getAsyncServerThreads()
Only for async server. Number of threads used to serve the requests.
int32 async_server_threads = 7;getAsyncServerThreads in interface Control.ServerConfigOrBuilderpublic int getCoreLimit()
Specify the number of cores to limit server to, if desired
int32 core_limit = 8;getCoreLimit in interface Control.ServerConfigOrBuilderpublic 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;hasPayloadConfig in interface Control.ServerConfigOrBuilderpublic 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;getPayloadConfig in interface Control.ServerConfigOrBuilderpublic 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;getPayloadConfigOrBuilder in interface Control.ServerConfigOrBuilderpublic List<Integer> getCoreListList()
Specify the cores we should run the server on, if desired
repeated int32 core_list = 10;getCoreListList in interface Control.ServerConfigOrBuilderpublic int getCoreListCount()
Specify the cores we should run the server on, if desired
repeated int32 core_list = 10;getCoreListCount in interface Control.ServerConfigOrBuilderpublic int getCoreList(int index)
Specify the cores we should run the server on, if desired
repeated int32 core_list = 10;getCoreList in interface Control.ServerConfigOrBuilderindex - The index of the element to return.public String getOtherServerApi()
If we use an OTHER_SERVER client_type, this string gives more detail
string other_server_api = 11;getOtherServerApi in interface Control.ServerConfigOrBuilderpublic com.google.protobuf.ByteString getOtherServerApiBytes()
If we use an OTHER_SERVER client_type, this string gives more detail
string other_server_api = 11;getOtherServerApiBytes in interface Control.ServerConfigOrBuilderpublic int getResourceQuotaSize()
Buffer pool size (no buffer pool specified if unset)
int32 resource_quota_size = 1001;getResourceQuotaSize in interface Control.ServerConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Control.ServerConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.ServerConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.ServerConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.ServerConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.ServerConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.ServerConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.ServerConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static Control.ServerConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Control.ServerConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Control.ServerConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Control.ServerConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Control.ServerConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Control.ServerConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Control.ServerConfig.Builder newBuilder()
public static Control.ServerConfig.Builder newBuilder(Control.ServerConfig prototype)
public Control.ServerConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Control.ServerConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Control.ServerConfig getDefaultInstance()
public static com.google.protobuf.Parser<Control.ServerConfig> parser()
public com.google.protobuf.Parser<Control.ServerConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Control.ServerConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder