Package io.grpc.testing.integration
Class Messages.SimpleResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grpc.testing.integration.Messages.SimpleResponse
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Messages.SimpleResponseOrBuilder,java.io.Serializable
- Enclosing class:
- Messages
public static final class Messages.SimpleResponse extends com.google.protobuf.GeneratedMessageV3 implements Messages.SimpleResponseOrBuilder
Unary response, as configured by the request.
Protobuf typegrpc.testing.SimpleResponse- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessages.SimpleResponse.BuilderUnary response, as configured by the 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 intGRPCLB_ROUTE_TYPE_FIELD_NUMBERstatic intHOSTNAME_FIELD_NUMBERstatic intOAUTH_SCOPE_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intSERVER_ID_FIELD_NUMBERstatic intUSERNAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static Messages.SimpleResponsegetDefaultInstance()Messages.SimpleResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Messages.GrpclbRouteTypegetGrpclbRouteType()gRPCLB Path.intgetGrpclbRouteTypeValue()gRPCLB Path.java.lang.StringgetHostname()Server hostname.com.google.protobuf.ByteStringgetHostnameBytes()Server hostname.java.lang.StringgetOauthScope()OAuth scope.com.google.protobuf.ByteStringgetOauthScopeBytes()OAuth scope.com.google.protobuf.Parser<Messages.SimpleResponse>getParserForType()Messages.PayloadgetPayload()Payload to increase message size.Messages.PayloadOrBuildergetPayloadOrBuilder()Payload to increase message size.intgetSerializedSize()java.lang.StringgetServerId()Server ID.com.google.protobuf.ByteStringgetServerIdBytes()Server ID.java.lang.StringgetUsername()The user the request came from, for verifying authentication was successful when the client expected it.com.google.protobuf.ByteStringgetUsernameBytes()The user the request came from, for verifying authentication was successful when the client expected it.inthashCode()booleanhasPayload()Payload to increase message size.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Messages.SimpleResponse.BuildernewBuilder()static Messages.SimpleResponse.BuildernewBuilder(Messages.SimpleResponse prototype)Messages.SimpleResponse.BuildernewBuilderForType()protected Messages.SimpleResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Messages.SimpleResponseparseDelimitedFrom(java.io.InputStream input)static Messages.SimpleResponseparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.SimpleResponseparseFrom(byte[] data)static Messages.SimpleResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.SimpleResponseparseFrom(com.google.protobuf.ByteString data)static Messages.SimpleResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.SimpleResponseparseFrom(com.google.protobuf.CodedInputStream input)static Messages.SimpleResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.SimpleResponseparseFrom(java.io.InputStream input)static Messages.SimpleResponseparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.SimpleResponseparseFrom(java.nio.ByteBuffer data)static Messages.SimpleResponseparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Messages.SimpleResponse>parser()Messages.SimpleResponse.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
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USERNAME_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OAUTH_SCOPE_FIELD_NUMBER
public static final int OAUTH_SCOPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVER_ID_FIELD_NUMBER
public static final int SERVER_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GRPCLB_ROUTE_TYPE_FIELD_NUMBER
public static final int GRPCLB_ROUTE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HOSTNAME_FIELD_NUMBER
public static final int HOSTNAME_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
-
hasPayload
public boolean hasPayload()
Payload to increase message size.
.grpc.testing.Payload payload = 1;- Specified by:
hasPayloadin interfaceMessages.SimpleResponseOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public Messages.Payload getPayload()
Payload to increase message size.
.grpc.testing.Payload payload = 1;- Specified by:
getPayloadin interfaceMessages.SimpleResponseOrBuilder- Returns:
- The payload.
-
getPayloadOrBuilder
public Messages.PayloadOrBuilder getPayloadOrBuilder()
Payload to increase message size.
.grpc.testing.Payload payload = 1;- Specified by:
getPayloadOrBuilderin interfaceMessages.SimpleResponseOrBuilder
-
getUsername
public java.lang.String getUsername()
The user the request came from, for verifying authentication was successful when the client expected it.
string username = 2;- Specified by:
getUsernamein interfaceMessages.SimpleResponseOrBuilder- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()
The user the request came from, for verifying authentication was successful when the client expected it.
string username = 2;- Specified by:
getUsernameBytesin interfaceMessages.SimpleResponseOrBuilder- Returns:
- The bytes for username.
-
getOauthScope
public java.lang.String getOauthScope()
OAuth scope.
string oauth_scope = 3;- Specified by:
getOauthScopein interfaceMessages.SimpleResponseOrBuilder- Returns:
- The oauthScope.
-
getOauthScopeBytes
public com.google.protobuf.ByteString getOauthScopeBytes()
OAuth scope.
string oauth_scope = 3;- Specified by:
getOauthScopeBytesin interfaceMessages.SimpleResponseOrBuilder- Returns:
- The bytes for oauthScope.
-
getServerId
public java.lang.String getServerId()
Server ID. This must be unique among different server instances, but the same across all RPC's made to a particular server instance.
string server_id = 4;- Specified by:
getServerIdin interfaceMessages.SimpleResponseOrBuilder- Returns:
- The serverId.
-
getServerIdBytes
public com.google.protobuf.ByteString getServerIdBytes()
Server ID. This must be unique among different server instances, but the same across all RPC's made to a particular server instance.
string server_id = 4;- Specified by:
getServerIdBytesin interfaceMessages.SimpleResponseOrBuilder- Returns:
- The bytes for serverId.
-
getGrpclbRouteTypeValue
public int getGrpclbRouteTypeValue()
gRPCLB Path.
.grpc.testing.GrpclbRouteType grpclb_route_type = 5;- Specified by:
getGrpclbRouteTypeValuein interfaceMessages.SimpleResponseOrBuilder- Returns:
- The enum numeric value on the wire for grpclbRouteType.
-
getGrpclbRouteType
public Messages.GrpclbRouteType getGrpclbRouteType()
gRPCLB Path.
.grpc.testing.GrpclbRouteType grpclb_route_type = 5;- Specified by:
getGrpclbRouteTypein interfaceMessages.SimpleResponseOrBuilder- Returns:
- The grpclbRouteType.
-
getHostname
public java.lang.String getHostname()
Server hostname.
string hostname = 6;- Specified by:
getHostnamein interfaceMessages.SimpleResponseOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
Server hostname.
string hostname = 6;- Specified by:
getHostnameBytesin interfaceMessages.SimpleResponseOrBuilder- Returns:
- The bytes for hostname.
-
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.SimpleResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleResponse 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.SimpleResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.SimpleResponse parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Messages.SimpleResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Messages.SimpleResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Messages.SimpleResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Messages.SimpleResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Messages.SimpleResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Messages.SimpleResponse.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Messages.SimpleResponse.Builder newBuilder()
-
newBuilder
public static Messages.SimpleResponse.Builder newBuilder(Messages.SimpleResponse prototype)
-
toBuilder
public Messages.SimpleResponse.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Messages.SimpleResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Messages.SimpleResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Messages.SimpleResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<Messages.SimpleResponse> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Messages.SimpleResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-