Package org.microproxy.contentviews
Record Class ProtoSchema.Method
java.lang.Object
java.lang.Record
org.microproxy.contentviews.ProtoSchema.Method
- Record Components:
service- the service's full name, such asexample.Shopname- the method's nameinputType- the request message type's full nameoutputType- the response message type's full nameclientStreaming- whether the client sends a stream of messagesserverStreaming- whether the server sends a stream of messages
- Enclosing class:
ProtoSchema
public static record ProtoSchema.Method(String service, String name, String inputType, String outputType, boolean clientStreaming, boolean serverStreaming)
extends Record
An RPC method of a service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theclientStreamingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinputTyperecord component.name()Returns the value of thenamerecord component.Returns the value of theoutputTyperecord component.path()Returns the gRPC request path,/<service>/<method>.booleanReturns the value of theserverStreamingrecord component.service()Returns the value of theservicerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method
public Method(String service, String name, String inputType, String outputType, boolean clientStreaming, boolean serverStreaming) Creates an instance of aMethodrecord class.- Parameters:
service- the value for theservicerecord componentname- the value for thenamerecord componentinputType- the value for theinputTyperecord componentoutputType- the value for theoutputTyperecord componentclientStreaming- the value for theclientStreamingrecord componentserverStreaming- the value for theserverStreamingrecord component
-
-
Method Details
-
path
Returns the gRPC request path,/<service>/<method>.- Returns:
- the gRPC request path,
/<service>/<method>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
inputType
Returns the value of theinputTyperecord component.- Returns:
- the value of the
inputTyperecord component
-
outputType
Returns the value of theoutputTyperecord component.- Returns:
- the value of the
outputTyperecord component
-
clientStreaming
public boolean clientStreaming()Returns the value of theclientStreamingrecord component.- Returns:
- the value of the
clientStreamingrecord component
-
serverStreaming
public boolean serverStreaming()Returns the value of theserverStreamingrecord component.- Returns:
- the value of the
serverStreamingrecord component
-