public static final class Control.Scenario extends com.google.protobuf.GeneratedMessageV3 implements Control.ScenarioOrBuilder
A single performance scenario: input to qps_json_driverProtobuf type
grpc.testing.Scenario| Modifier and Type | Class and Description |
|---|---|
static class |
Control.Scenario.Builder
A single performance scenario: input to qps_json_driver
|
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 |
BENCHMARK_SECONDS_FIELD_NUMBER |
static int |
CLIENT_CONFIG_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NUM_CLIENTS_FIELD_NUMBER |
static int |
NUM_SERVERS_FIELD_NUMBER |
static int |
SERVER_CONFIG_FIELD_NUMBER |
static int |
SPAWN_LOCAL_WORKER_COUNT_FIELD_NUMBER |
static int |
WARMUP_SECONDS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getBenchmarkSeconds()
Benchmark time, in seconds
|
Control.ClientConfig |
getClientConfig()
Client configuration
|
Control.ClientConfigOrBuilder |
getClientConfigOrBuilder()
Client configuration
|
static Control.Scenario |
getDefaultInstance() |
Control.Scenario |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getName()
Human readable name for this scenario
|
com.google.protobuf.ByteString |
getNameBytes()
Human readable name for this scenario
|
int |
getNumClients()
Number of clients to start for the test
|
int |
getNumServers()
Number of servers to start for the test
|
com.google.protobuf.Parser<Control.Scenario> |
getParserForType() |
int |
getSerializedSize() |
Control.ServerConfig |
getServerConfig()
Server configuration
|
Control.ServerConfigOrBuilder |
getServerConfigOrBuilder()
Server configuration
|
int |
getSpawnLocalWorkerCount()
Number of workers to spawn locally (usually zero)
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getWarmupSeconds()
Warmup period, in seconds
|
boolean |
hasClientConfig()
Client configuration
|
int |
hashCode() |
boolean |
hasServerConfig()
Server configuration
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Control.Scenario.Builder |
newBuilder() |
static Control.Scenario.Builder |
newBuilder(Control.Scenario prototype) |
Control.Scenario.Builder |
newBuilderForType() |
protected Control.Scenario.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Control.Scenario |
parseDelimitedFrom(InputStream input) |
static Control.Scenario |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Control.Scenario |
parseFrom(byte[] data) |
static Control.Scenario |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Control.Scenario |
parseFrom(ByteBuffer data) |
static Control.Scenario |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Control.Scenario |
parseFrom(com.google.protobuf.ByteString data) |
static Control.Scenario |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Control.Scenario |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Control.Scenario |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Control.Scenario |
parseFrom(InputStream input) |
static Control.Scenario |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Control.Scenario> |
parser() |
Control.Scenario.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 NAME_FIELD_NUMBER
public static final int CLIENT_CONFIG_FIELD_NUMBER
public static final int NUM_CLIENTS_FIELD_NUMBER
public static final int SERVER_CONFIG_FIELD_NUMBER
public static final int NUM_SERVERS_FIELD_NUMBER
public static final int WARMUP_SECONDS_FIELD_NUMBER
public static final int BENCHMARK_SECONDS_FIELD_NUMBER
public static final int SPAWN_LOCAL_WORKER_COUNT_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 String getName()
Human readable name for this scenario
string name = 1;getName in interface Control.ScenarioOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Human readable name for this scenario
string name = 1;getNameBytes in interface Control.ScenarioOrBuilderpublic boolean hasClientConfig()
Client configuration
.grpc.testing.ClientConfig client_config = 2;hasClientConfig in interface Control.ScenarioOrBuilderpublic Control.ClientConfig getClientConfig()
Client configuration
.grpc.testing.ClientConfig client_config = 2;getClientConfig in interface Control.ScenarioOrBuilderpublic Control.ClientConfigOrBuilder getClientConfigOrBuilder()
Client configuration
.grpc.testing.ClientConfig client_config = 2;getClientConfigOrBuilder in interface Control.ScenarioOrBuilderpublic int getNumClients()
Number of clients to start for the test
int32 num_clients = 3;getNumClients in interface Control.ScenarioOrBuilderpublic boolean hasServerConfig()
Server configuration
.grpc.testing.ServerConfig server_config = 4;hasServerConfig in interface Control.ScenarioOrBuilderpublic Control.ServerConfig getServerConfig()
Server configuration
.grpc.testing.ServerConfig server_config = 4;getServerConfig in interface Control.ScenarioOrBuilderpublic Control.ServerConfigOrBuilder getServerConfigOrBuilder()
Server configuration
.grpc.testing.ServerConfig server_config = 4;getServerConfigOrBuilder in interface Control.ScenarioOrBuilderpublic int getNumServers()
Number of servers to start for the test
int32 num_servers = 5;getNumServers in interface Control.ScenarioOrBuilderpublic int getWarmupSeconds()
Warmup period, in seconds
int32 warmup_seconds = 6;getWarmupSeconds in interface Control.ScenarioOrBuilderpublic int getBenchmarkSeconds()
Benchmark time, in seconds
int32 benchmark_seconds = 7;getBenchmarkSeconds in interface Control.ScenarioOrBuilderpublic int getSpawnLocalWorkerCount()
Number of workers to spawn locally (usually zero)
int32 spawn_local_worker_count = 8;getSpawnLocalWorkerCount in interface Control.ScenarioOrBuilderpublic 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.Scenario parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.Scenario parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.Scenario parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.Scenario parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.Scenario parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.Scenario parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Control.Scenario parseFrom(InputStream input) throws IOException
IOExceptionpublic static Control.Scenario parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Control.Scenario parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Control.Scenario parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Control.Scenario parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Control.Scenario parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Control.Scenario.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Control.Scenario.Builder newBuilder()
public static Control.Scenario.Builder newBuilder(Control.Scenario prototype)
public Control.Scenario.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Control.Scenario.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Control.Scenario getDefaultInstance()
public static com.google.protobuf.Parser<Control.Scenario> parser()
public com.google.protobuf.Parser<Control.Scenario> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Control.Scenario getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder