Class 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 type grpc.testing.SimpleRequest
    See Also:
    Serialized Form
    • 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
      • 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:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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:
        getResponseTypeValue in interface Messages.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:
        getResponseType in interface Messages.SimpleRequestOrBuilder
        Returns:
        The responseType.
      • getResponseSize

        public int getResponseSize()
         Desired payload size in the response from the server.
         
        int32 response_size = 2;
        Specified by:
        getResponseSize in interface Messages.SimpleRequestOrBuilder
        Returns:
        The responseSize.
      • hasPayload

        public boolean hasPayload()
         Optional input payload sent along with the request.
         
        .grpc.testing.Payload payload = 3;
        Specified by:
        hasPayload in interface Messages.SimpleRequestOrBuilder
        Returns:
        Whether the payload field is set.
      • getFillOauthScope

        public boolean getFillOauthScope()
         Whether SimpleResponse should include OAuth scope.
         
        bool fill_oauth_scope = 5;
        Specified by:
        getFillOauthScope in interface Messages.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:
        hasResponseCompressed in interface Messages.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:
        getResponseCompressed in interface Messages.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:
        getResponseCompressedOrBuilder in interface Messages.SimpleRequestOrBuilder
      • hasResponseStatus

        public boolean hasResponseStatus()
         Whether server should return a given status
         
        .grpc.testing.EchoStatus response_status = 7;
        Specified by:
        hasResponseStatus in interface Messages.SimpleRequestOrBuilder
        Returns:
        Whether the responseStatus field is set.
      • hasExpectCompressed

        public boolean hasExpectCompressed()
         Whether the server should expect this request to be compressed.
         
        .grpc.testing.BoolValue expect_compressed = 8;
        Specified by:
        hasExpectCompressed in interface Messages.SimpleRequestOrBuilder
        Returns:
        Whether the expectCompressed field is set.
      • getFillServerId

        public boolean getFillServerId()
         Whether SimpleResponse should include server_id.
         
        bool fill_server_id = 9;
        Specified by:
        getFillServerId in interface Messages.SimpleRequestOrBuilder
        Returns:
        The fillServerId.
      • getFillGrpclbRouteType

        public boolean getFillGrpclbRouteType()
         Whether SimpleResponse should include grpclb_route_type.
         
        bool fill_grpclb_route_type = 10;
        Specified by:
        getFillGrpclbRouteType in interface Messages.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:
        hasOrcaPerQueryReport in interface Messages.SimpleRequestOrBuilder
        Returns:
        Whether the orcaPerQueryReport field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Messages.SimpleRequest.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Messages.SimpleRequest.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Messages.SimpleRequest> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Messages.SimpleRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder