接口 GatewayOuterClass.PortOrBuilder
-
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 封闭类:
- GatewayOuterClass
public static interface GatewayOuterClass.PortOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.lang.StringgetName()Label assigned to the port.com.google.protobuf.ByteStringgetNameBytes()Label assigned to the port.intgetNumber()A valid non-negative integer port number.java.lang.StringgetProtocol()The protocol exposed on the port.com.google.protobuf.ByteStringgetProtocolBytes()The protocol exposed on the port.intgetTargetPort()The port number on the endpoint where the traffic will be received.
-
-
-
方法详细资料
-
getNumber
int getNumber()
A valid non-negative integer port number.
uint32 number = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The number.
-
getProtocol
java.lang.String getProtocol()
The protocol exposed on the port. MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS. TLS implies the connection will be routed based on the SNI header to the destination without terminating the TLS connection.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The protocol.
-
getProtocolBytes
com.google.protobuf.ByteString getProtocolBytes()
The protocol exposed on the port. MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS. TLS implies the connection will be routed based on the SNI header to the destination without terminating the TLS connection.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The bytes for protocol.
-
getName
java.lang.String getName()
Label assigned to the port.
string name = 3 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Label assigned to the port.
string name = 3 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The bytes for name.
-
getTargetPort
int getTargetPort()
The port number on the endpoint where the traffic will be received. Applicable only when used with ServiceEntries.
uint32 target_port = 4;- 返回:
- The targetPort.
-
-