接口 GatewayOuterClass.PortOrBuilder

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      java.lang.String getName()
      Label assigned to the port.
      com.google.protobuf.ByteString getNameBytes()
      Label assigned to the port.
      int getNumber()
      A valid non-negative integer port number.
      java.lang.String getProtocol()
      The protocol exposed on the port.
      com.google.protobuf.ByteString getProtocolBytes()
      The protocol exposed on the port.
      int getTargetPort()
      The port number on the endpoint where the traffic will be received.
      • 从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • 从接口继承的方法 com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • 方法详细资料

      • 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.