Package io.grpc.testing.integration
Class Messages.SimpleRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grpc.testing.integration.Messages.SimpleRequest
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Messages.SimpleRequestOrBuilder,java.io.Serializable
- Enclosing class:
- Messages
public static final class Messages.SimpleRequest extends com.google.protobuf.GeneratedMessageV3 implements Messages.SimpleRequestOrBuilder
Unary request.
Protobuf typegrpc.testing.SimpleRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessages.SimpleRequest.BuilderUnary request.-
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 intEXPECT_COMPRESSED_FIELD_NUMBERstatic intFILL_GRPCLB_ROUTE_TYPE_FIELD_NUMBERstatic intFILL_OAUTH_SCOPE_FIELD_NUMBERstatic intFILL_SERVER_ID_FIELD_NUMBERstatic intFILL_USERNAME_FIELD_NUMBERstatic intORCA_PER_QUERY_REPORT_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intRESPONSE_COMPRESSED_FIELD_NUMBERstatic intRESPONSE_SIZE_FIELD_NUMBERstatic intRESPONSE_STATUS_FIELD_NUMBERstatic intRESPONSE_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static Messages.SimpleRequestgetDefaultInstance()Messages.SimpleRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Messages.BoolValuegetExpectCompressed()Whether the server should expect this request to be compressed.Messages.BoolValueOrBuildergetExpectCompressedOrBuilder()Whether the server should expect this request to be compressed.booleangetFillGrpclbRouteType()Whether SimpleResponse should include grpclb_route_type.booleangetFillOauthScope()Whether SimpleResponse should include OAuth scope.booleangetFillServerId()Whether SimpleResponse should include server_id.booleangetFillUsername()Whether SimpleResponse should include username.Messages.TestOrcaReportgetOrcaPerQueryReport()If set the server should record this metrics report data for the current RPC.Messages.TestOrcaReportOrBuildergetOrcaPerQueryReportOrBuilder()If set the server should record this metrics report data for the current RPC.com.google.protobuf.Parser<Messages.SimpleRequest>getParserForType()Messages.PayloadgetPayload()Optional input payload sent along with the request.Messages.PayloadOrBuildergetPayloadOrBuilder()Optional input payload sent along with the request.Messages.BoolValuegetResponseCompressed()Whether to request the server to compress the response.Messages.BoolValueOrBuildergetResponseCompressedOrBuilder()Whether to request the server to compress the response.intgetResponseSize()Desired payload size in the response from the server.Messages.EchoStatusgetResponseStatus()Whether server should return a given statusMessages.EchoStatusOrBuildergetResponseStatusOrBuilder()Whether server should return a given statusMessages.PayloadTypegetResponseType()Desired payload type in the response from the server.intgetResponseTypeValue()Desired payload type in the response from the server.intgetSerializedSize()booleanhasExpectCompressed()Whether the server should expect this request to be compressed.inthashCode()booleanhasOrcaPerQueryReport()If set the server should record this metrics report data for the current RPC.booleanhasPayload()Optional input payload sent along with the request.booleanhasResponseCompressed()Whether to request the server to compress the response.booleanhasResponseStatus()Whether server should return a given statusprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Messages.SimpleRequest.BuildernewBuilder()static Messages.SimpleRequest.BuildernewBuilder(Messages.SimpleRequest prototype)Messages.SimpleRequest.BuildernewBuilderForType()protected Messages.SimpleRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Messages.SimpleRequestparseDelimitedFrom(java.io.InputStream input)static Messages.SimpleRequestparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.SimpleRequestparseFrom(byte[] data)static Messages.SimpleRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.SimpleRequestparseFrom(com.google.protobuf.ByteString data)static Messages.SimpleRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.SimpleRequestparseFrom(com.google.protobuf.CodedInputStream input)static Messages.SimpleRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.SimpleRequestparseFrom(java.io.InputStream input)static Messages.SimpleRequestparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.SimpleRequestparseFrom(java.nio.ByteBuffer data)static Messages.SimpleRequestparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Messages.SimpleRequest>parser()Messages.SimpleRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
-
RESPONSE_TYPE_FIELD_NUMBER
public static final int RESPONSE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_SIZE_FIELD_NUMBER
public static final int RESPONSE_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILL_USERNAME_FIELD_NUMBER
public static final int FILL_USERNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILL_OAUTH_SCOPE_FIELD_NUMBER
public static final int FILL_OAUTH_SCOPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_COMPRESSED_FIELD_NUMBER
public static final int RESPONSE_COMPRESSED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_STATUS_FIELD_NUMBER
public static final int RESPONSE_STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPECT_COMPRESSED_FIELD_NUMBER
public static final int EXPECT_COMPRESSED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILL_SERVER_ID_FIELD_NUMBER
public static final int FILL_SERVER_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILL_GRPCLB_ROUTE_TYPE_FIELD_NUMBER
public static final int FILL_GRPCLB_ROUTE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORCA_PER_QUERY_REPORT_FIELD_NUMBER
public static final int ORCA_PER_QUERY_REPORT_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
-
getResponseTypeValue
public int getResponseTypeValue()
Desired payload type in the response from the server. If response_type is RANDOM, server randomly chooses one from other formats.
.grpc.testing.PayloadType response_type = 1;- Specified by:
getResponseTypeValuein interfaceMessages.SimpleRequestOrBuilder- Returns:
- The enum numeric value on the wire for responseType.
-
getResponseType
public Messages.PayloadType getResponseType()
Desired payload type in the response from the server. If response_type is RANDOM, server randomly chooses one from other formats.
.grpc.testing.PayloadType response_type = 1;- Specified by:
getResponseTypein interfaceMessages.SimpleRequestOrBuilder- Returns:
- The responseType.
-
getResponseSize
public int getResponseSize()
Desired payload size in the response from the server.
int32 response_size = 2;- Specified by:
getResponseSizein interfaceMessages.SimpleRequestOrBuilder- Returns:
- The responseSize.
-
hasPayload
public boolean hasPayload()
Optional input payload sent along with the request.
.grpc.testing.Payload payload = 3;- Specified by:
hasPayloadin interfaceMessages.SimpleRequestOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public Messages.Payload getPayload()
Optional input payload sent along with the request.
.grpc.testing.Payload payload = 3;- Specified by:
getPayloadin interfaceMessages.SimpleRequestOrBuilder- Returns:
- The payload.
-
getPayloadOrBuilder
public Messages.PayloadOrBuilder getPayloadOrBuilder()
Optional input payload sent along with the request.
.grpc.testing.Payload payload = 3;- Specified by:
getPayloadOrBuilderin interfaceMessages.SimpleRequestOrBuilder
-
getFillUsername
public boolean getFillUsername()
Whether SimpleResponse should include username.
bool fill_username = 4;- Specified by:
getFillUsernamein interfaceMessages.SimpleRequestOrBuilder- Returns:
- The fillUsername.
-
getFillOauthScope
public boolean getFillOauthScope()
Whether SimpleResponse should include OAuth scope.
bool fill_oauth_scope = 5;- Specified by:
getFillOauthScopein interfaceMessages.SimpleRequestOrBuilder- Returns:
- The fillOauthScope.
-
hasResponseCompressed
public boolean hasResponseCompressed()
Whether to request the server to compress the response. This field is "nullable" in order to interoperate seamlessly with clients not able to implement the full compression tests by introspecting the call to verify the response's compression status.
.grpc.testing.BoolValue response_compressed = 6;- Specified by:
hasResponseCompressedin interfaceMessages.SimpleRequestOrBuilder- Returns:
- Whether the responseCompressed field is set.
-
getResponseCompressed
public Messages.BoolValue getResponseCompressed()
Whether to request the server to compress the response. This field is "nullable" in order to interoperate seamlessly with clients not able to implement the full compression tests by introspecting the call to verify the response's compression status.
.grpc.testing.BoolValue response_compressed = 6;- Specified by:
getResponseCompressedin interfaceMessages.SimpleRequestOrBuilder- Returns:
- The responseCompressed.
-
getResponseCompressedOrBuilder
public Messages.BoolValueOrBuilder getResponseCompressedOrBuilder()
Whether to request the server to compress the response. This field is "nullable" in order to interoperate seamlessly with clients not able to implement the full compression tests by introspecting the call to verify the response's compression status.
.grpc.testing.BoolValue response_compressed = 6;- Specified by:
getResponseCompressedOrBuilderin interfaceMessages.SimpleRequestOrBuilder
-
hasResponseStatus
public boolean hasResponseStatus()
Whether server should return a given status
.grpc.testing.EchoStatus response_status = 7;- Specified by:
hasResponseStatusin interfaceMessages.SimpleRequestOrBuilder- Returns:
- Whether the responseStatus field is set.
-
getResponseStatus
public Messages.EchoStatus getResponseStatus()
Whether server should return a given status
.grpc.testing.EchoStatus response_status = 7;- Specified by:
getResponseStatusin interfaceMessages.SimpleRequestOrBuilder- Returns:
- The responseStatus.
-
getResponseStatusOrBuilder
public Messages.EchoStatusOrBuilder getResponseStatusOrBuilder()
Whether server should return a given status
.grpc.testing.EchoStatus response_status = 7;- Specified by:
getResponseStatusOrBuilderin interfaceMessages.SimpleRequestOrBuilder
-
hasExpectCompressed
public boolean hasExpectCompressed()
Whether the server should expect this request to be compressed.
.grpc.testing.BoolValue expect_compressed = 8;- Specified by:
hasExpectCompressedin interfaceMessages.SimpleRequestOrBuilder- Returns:
- Whether the expectCompressed field is set.
-
getExpectCompressed
public Messages.BoolValue getExpectCompressed()
Whether the server should expect this request to be compressed.
.grpc.testing.BoolValue expect_compressed = 8;- Specified by:
getExpectCompressedin interfaceMessages.SimpleRequestOrBuilder- Returns:
- The expectCompressed.
-
getExpectCompressedOrBuilder
public Messages.BoolValueOrBuilder getExpectCompressedOrBuilder()
Whether the server should expect this request to be compressed.
.grpc.testing.BoolValue expect_compressed = 8;- Specified by:
getExpectCompressedOrBuilderin interfaceMessages.SimpleRequestOrBuilder
-
getFillServerId
public boolean getFillServerId()
Whether SimpleResponse should include server_id.
bool fill_server_id = 9;- Specified by:
getFillServerIdin interfaceMessages.SimpleRequestOrBuilder- Returns:
- The fillServerId.
-
getFillGrpclbRouteType
public boolean getFillGrpclbRouteType()
Whether SimpleResponse should include grpclb_route_type.
bool fill_grpclb_route_type = 10;- Specified by:
getFillGrpclbRouteTypein interfaceMessages.SimpleRequestOrBuilder- Returns:
- The fillGrpclbRouteType.
-
hasOrcaPerQueryReport
public boolean hasOrcaPerQueryReport()
If set the server should record this metrics report data for the current RPC.
.grpc.testing.TestOrcaReport orca_per_query_report = 11;- Specified by:
hasOrcaPerQueryReportin interfaceMessages.SimpleRequestOrBuilder- Returns:
- Whether the orcaPerQueryReport field is set.
-
getOrcaPerQueryReport
public Messages.TestOrcaReport getOrcaPerQueryReport()
If set the server should record this metrics report data for the current RPC.
.grpc.testing.TestOrcaReport orca_per_query_report = 11;- Specified by:
getOrcaPerQueryReportin interfaceMessages.SimpleRequestOrBuilder- Returns:
- The orcaPerQueryReport.
-
getOrcaPerQueryReportOrBuilder
public Messages.TestOrcaReportOrBuilder getOrcaPerQueryReportOrBuilder()
If set the server should record this metrics report data for the current RPC.
.grpc.testing.TestOrcaReport orca_per_query_report = 11;- Specified by:
getOrcaPerQueryReportOrBuilderin interfaceMessages.SimpleRequestOrBuilder
-
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 Messages.SimpleRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleRequest parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Messages.SimpleRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Messages.SimpleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Messages.SimpleRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Messages.SimpleRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Messages.SimpleRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Messages.SimpleRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Messages.SimpleRequest.Builder newBuilder()
-
newBuilder
public static Messages.SimpleRequest.Builder newBuilder(Messages.SimpleRequest prototype)
-
toBuilder
public Messages.SimpleRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Messages.SimpleRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Messages.SimpleRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Messages.SimpleRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<Messages.SimpleRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Messages.SimpleRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-