Class Messages.SimpleResponse.Builder

    • Method Detail

      • 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.Builder<Messages.SimpleResponse.Builder>
      • clear

        public Messages.SimpleResponse.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.SimpleResponse.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.SimpleResponse.Builder>
      • getDefaultInstanceForType

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

        public Messages.SimpleResponse build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Messages.SimpleResponse buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.SimpleResponse.Builder>
      • mergeFrom

        public Messages.SimpleResponse.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Messages.SimpleResponse.Builder>
        Throws:
        java.io.IOException
      • hasPayload

        public boolean hasPayload()
         Payload to increase message size.
         
        .grpc.testing.Payload payload = 1;
        Specified by:
        hasPayload in interface Messages.SimpleResponseOrBuilder
        Returns:
        Whether the payload field is set.
      • getPayloadBuilder

        public Messages.Payload.Builder getPayloadBuilder()
         Payload to increase message size.
         
        .grpc.testing.Payload payload = 1;
      • 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:
        getUsername in interface Messages.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:
        getUsernameBytes in interface Messages.SimpleResponseOrBuilder
        Returns:
        The bytes for username.
      • setUsername

        public Messages.SimpleResponse.Builder setUsername​(java.lang.String value)
         The user the request came from, for verifying authentication was
         successful when the client expected it.
         
        string username = 2;
        Parameters:
        value - The username to set.
        Returns:
        This builder for chaining.
      • clearUsername

        public Messages.SimpleResponse.Builder clearUsername()
         The user the request came from, for verifying authentication was
         successful when the client expected it.
         
        string username = 2;
        Returns:
        This builder for chaining.
      • setUsernameBytes

        public Messages.SimpleResponse.Builder setUsernameBytes​(com.google.protobuf.ByteString value)
         The user the request came from, for verifying authentication was
         successful when the client expected it.
         
        string username = 2;
        Parameters:
        value - The bytes for username to set.
        Returns:
        This builder for chaining.
      • setOauthScope

        public Messages.SimpleResponse.Builder setOauthScope​(java.lang.String value)
         OAuth scope.
         
        string oauth_scope = 3;
        Parameters:
        value - The oauthScope to set.
        Returns:
        This builder for chaining.
      • setOauthScopeBytes

        public Messages.SimpleResponse.Builder setOauthScopeBytes​(com.google.protobuf.ByteString value)
         OAuth scope.
         
        string oauth_scope = 3;
        Parameters:
        value - The bytes for oauthScope to set.
        Returns:
        This builder for chaining.
      • 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:
        getServerId in interface Messages.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:
        getServerIdBytes in interface Messages.SimpleResponseOrBuilder
        Returns:
        The bytes for serverId.
      • setServerId

        public Messages.SimpleResponse.Builder setServerId​(java.lang.String value)
         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;
        Parameters:
        value - The serverId to set.
        Returns:
        This builder for chaining.
      • clearServerId

        public Messages.SimpleResponse.Builder clearServerId()
         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;
        Returns:
        This builder for chaining.
      • setServerIdBytes

        public Messages.SimpleResponse.Builder setServerIdBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for serverId to set.
        Returns:
        This builder for chaining.
      • getGrpclbRouteTypeValue

        public int getGrpclbRouteTypeValue()
         gRPCLB Path.
         
        .grpc.testing.GrpclbRouteType grpclb_route_type = 5;
        Specified by:
        getGrpclbRouteTypeValue in interface Messages.SimpleResponseOrBuilder
        Returns:
        The enum numeric value on the wire for grpclbRouteType.
      • setGrpclbRouteTypeValue

        public Messages.SimpleResponse.Builder setGrpclbRouteTypeValue​(int value)
         gRPCLB Path.
         
        .grpc.testing.GrpclbRouteType grpclb_route_type = 5;
        Parameters:
        value - The enum numeric value on the wire for grpclbRouteType to set.
        Returns:
        This builder for chaining.
      • clearGrpclbRouteType

        public Messages.SimpleResponse.Builder clearGrpclbRouteType()
         gRPCLB Path.
         
        .grpc.testing.GrpclbRouteType grpclb_route_type = 5;
        Returns:
        This builder for chaining.
      • setHostname

        public Messages.SimpleResponse.Builder setHostname​(java.lang.String value)
         Server hostname.
         
        string hostname = 6;
        Parameters:
        value - The hostname to set.
        Returns:
        This builder for chaining.
      • setHostnameBytes

        public Messages.SimpleResponse.Builder setHostnameBytes​(com.google.protobuf.ByteString value)
         Server hostname.
         
        string hostname = 6;
        Parameters:
        value - The bytes for hostname to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Messages.SimpleResponse.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.SimpleResponse.Builder>
      • mergeUnknownFields

        public final Messages.SimpleResponse.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Messages.SimpleResponse.Builder>