类 GatewayOuterClass.Port.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Port.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
istio.networking.v1alpha3.GatewayOuterClass.Port.Builder
所有已实现的接口:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GatewayOuterClass.PortOrBuilder, Cloneable
封闭类:
GatewayOuterClass.Port

public static final class GatewayOuterClass.Port.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder> implements GatewayOuterClass.PortOrBuilder
 Port describes the properties of a specific port of a service.
 
Protobuf type istio.networking.v1alpha3.Port
  • 方法详细资料

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • clear

      指定者:
      clear 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clear 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.Message.Builder
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.MessageOrBuilder
      覆盖:
      getDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • getDefaultInstanceForType

      public GatewayOuterClass.Port getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder
    • build

      public GatewayOuterClass.Port build()
      指定者:
      build 在接口中 com.google.protobuf.Message.Builder
      指定者:
      build 在接口中 com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GatewayOuterClass.Port buildPartial()
      指定者:
      buildPartial 在接口中 com.google.protobuf.Message.Builder
      指定者:
      buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
    • clone

      指定者:
      clone 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clone 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • setField

      public GatewayOuterClass.Port.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      setField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • clearField

      public GatewayOuterClass.Port.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      指定者:
      clearField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • clearOneof

      public GatewayOuterClass.Port.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      指定者:
      clearOneof 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • setRepeatedField

      public GatewayOuterClass.Port.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      指定者:
      setRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • addRepeatedField

      public GatewayOuterClass.Port.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      addRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      addRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • mergeFrom

      public GatewayOuterClass.Port.Builder mergeFrom(com.google.protobuf.Message other)
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Port.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • mergeFrom

      public GatewayOuterClass.Port.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      指定者:
      mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Port.Builder>
      抛出:
      IOException
    • getNumber

      public int getNumber()
       A valid non-negative integer port number.
       
      uint32 number = 1 [(.google.api.field_behavior) = REQUIRED];
      指定者:
      getNumber 在接口中 GatewayOuterClass.PortOrBuilder
      返回:
      The number.
    • setNumber

      public GatewayOuterClass.Port.Builder setNumber(int value)
       A valid non-negative integer port number.
       
      uint32 number = 1 [(.google.api.field_behavior) = REQUIRED];
      参数:
      value - The number to set.
      返回:
      This builder for chaining.
    • clearNumber

      public GatewayOuterClass.Port.Builder clearNumber()
       A valid non-negative integer port number.
       
      uint32 number = 1 [(.google.api.field_behavior) = REQUIRED];
      返回:
      This builder for chaining.
    • getProtocol

      public 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];
      指定者:
      getProtocol 在接口中 GatewayOuterClass.PortOrBuilder
      返回:
      The protocol.
    • getProtocolBytes

      public 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];
      指定者:
      getProtocolBytes 在接口中 GatewayOuterClass.PortOrBuilder
      返回:
      The bytes for protocol.
    • setProtocol

      public GatewayOuterClass.Port.Builder setProtocol(String value)
       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];
      参数:
      value - The protocol to set.
      返回:
      This builder for chaining.
    • clearProtocol

      public GatewayOuterClass.Port.Builder clearProtocol()
       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];
      返回:
      This builder for chaining.
    • setProtocolBytes

      public GatewayOuterClass.Port.Builder setProtocolBytes(com.google.protobuf.ByteString value)
       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];
      参数:
      value - The bytes for protocol to set.
      返回:
      This builder for chaining.
    • getName

      public String getName()
       Label assigned to the port.
       
      string name = 3 [(.google.api.field_behavior) = REQUIRED];
      指定者:
      getName 在接口中 GatewayOuterClass.PortOrBuilder
      返回:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Label assigned to the port.
       
      string name = 3 [(.google.api.field_behavior) = REQUIRED];
      指定者:
      getNameBytes 在接口中 GatewayOuterClass.PortOrBuilder
      返回:
      The bytes for name.
    • setName

      public GatewayOuterClass.Port.Builder setName(String value)
       Label assigned to the port.
       
      string name = 3 [(.google.api.field_behavior) = REQUIRED];
      参数:
      value - The name to set.
      返回:
      This builder for chaining.
    • clearName

      public GatewayOuterClass.Port.Builder clearName()
       Label assigned to the port.
       
      string name = 3 [(.google.api.field_behavior) = REQUIRED];
      返回:
      This builder for chaining.
    • setNameBytes

      public GatewayOuterClass.Port.Builder setNameBytes(com.google.protobuf.ByteString value)
       Label assigned to the port.
       
      string name = 3 [(.google.api.field_behavior) = REQUIRED];
      参数:
      value - The bytes for name to set.
      返回:
      This builder for chaining.
    • getTargetPort

      public int getTargetPort()
       The port number on the endpoint where the traffic will be
       received. Applicable only when used with ServiceEntries.
       
      uint32 target_port = 4;
      指定者:
      getTargetPort 在接口中 GatewayOuterClass.PortOrBuilder
      返回:
      The targetPort.
    • setTargetPort

      public GatewayOuterClass.Port.Builder setTargetPort(int value)
       The port number on the endpoint where the traffic will be
       received. Applicable only when used with ServiceEntries.
       
      uint32 target_port = 4;
      参数:
      value - The targetPort to set.
      返回:
      This builder for chaining.
    • clearTargetPort

      public GatewayOuterClass.Port.Builder clearTargetPort()
       The port number on the endpoint where the traffic will be
       received. Applicable only when used with ServiceEntries.
       
      uint32 target_port = 4;
      返回:
      This builder for chaining.
    • setUnknownFields

      public final GatewayOuterClass.Port.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      setUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
    • mergeUnknownFields

      public final GatewayOuterClass.Port.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      mergeUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>