Class Cluster.TransportSocketMatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Cluster.TransportSocketMatch.Builder>
io.envoyproxy.envoy.api.v2.Cluster.TransportSocketMatch.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cluster.TransportSocketMatchOrBuilder, Cloneable
Enclosing class:
Cluster.TransportSocketMatch

public static final class Cluster.TransportSocketMatch.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Cluster.TransportSocketMatch.Builder> implements Cluster.TransportSocketMatchOrBuilder
 TransportSocketMatch specifies what transport socket config will be used
 when the match conditions are satisfied.
 
Protobuf type envoy.api.v2.Cluster.TransportSocketMatch
  • Method Details

    • 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<Cluster.TransportSocketMatch.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<Cluster.TransportSocketMatch.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<Cluster.TransportSocketMatch.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Cluster.TransportSocketMatch buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.TransportSocketMatch.Builder>
    • setField

      public Cluster.TransportSocketMatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.TransportSocketMatch.Builder>
    • clearField

      public Cluster.TransportSocketMatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.TransportSocketMatch.Builder>
    • clearOneof

      public Cluster.TransportSocketMatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.TransportSocketMatch.Builder>
    • setRepeatedField

      public Cluster.TransportSocketMatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.TransportSocketMatch.Builder>
    • addRepeatedField

      public Cluster.TransportSocketMatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.TransportSocketMatch.Builder>
    • mergeFrom

      public Cluster.TransportSocketMatch.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.TransportSocketMatch.Builder>
    • mergeFrom

    • isInitialized

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

      public Cluster.TransportSocketMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<Cluster.TransportSocketMatch.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the match, used in stats generation.
       
      string name = 1 [(.validate.rules) = { ... }
      Specified by:
      getName in interface Cluster.TransportSocketMatchOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the match, used in stats generation.
       
      string name = 1 [(.validate.rules) = { ... }
      Specified by:
      getNameBytes in interface Cluster.TransportSocketMatchOrBuilder
      Returns:
      The bytes for name.
    • setName

       The name of the match, used in stats generation.
       
      string name = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The name of the match, used in stats generation.
       
      string name = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public Cluster.TransportSocketMatch.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the match, used in stats generation.
       
      string name = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasMatch

      public boolean hasMatch()
       Optional endpoint metadata match criteria.
       The connection to the endpoint with metadata matching what is set in this field
       will use the transport socket configuration specified here.
       The endpoint's metadata entry in *envoy.transport_socket_match* is used to match
       against the values specified in this field.
       
      .google.protobuf.Struct match = 2;
      Specified by:
      hasMatch in interface Cluster.TransportSocketMatchOrBuilder
      Returns:
      Whether the match field is set.
    • getMatch

      public com.google.protobuf.Struct getMatch()
       Optional endpoint metadata match criteria.
       The connection to the endpoint with metadata matching what is set in this field
       will use the transport socket configuration specified here.
       The endpoint's metadata entry in *envoy.transport_socket_match* is used to match
       against the values specified in this field.
       
      .google.protobuf.Struct match = 2;
      Specified by:
      getMatch in interface Cluster.TransportSocketMatchOrBuilder
      Returns:
      The match.
    • setMatch

      public Cluster.TransportSocketMatch.Builder setMatch(com.google.protobuf.Struct value)
       Optional endpoint metadata match criteria.
       The connection to the endpoint with metadata matching what is set in this field
       will use the transport socket configuration specified here.
       The endpoint's metadata entry in *envoy.transport_socket_match* is used to match
       against the values specified in this field.
       
      .google.protobuf.Struct match = 2;
    • setMatch

      public Cluster.TransportSocketMatch.Builder setMatch(com.google.protobuf.Struct.Builder builderForValue)
       Optional endpoint metadata match criteria.
       The connection to the endpoint with metadata matching what is set in this field
       will use the transport socket configuration specified here.
       The endpoint's metadata entry in *envoy.transport_socket_match* is used to match
       against the values specified in this field.
       
      .google.protobuf.Struct match = 2;
    • mergeMatch

      public Cluster.TransportSocketMatch.Builder mergeMatch(com.google.protobuf.Struct value)
       Optional endpoint metadata match criteria.
       The connection to the endpoint with metadata matching what is set in this field
       will use the transport socket configuration specified here.
       The endpoint's metadata entry in *envoy.transport_socket_match* is used to match
       against the values specified in this field.
       
      .google.protobuf.Struct match = 2;
    • clearMatch

       Optional endpoint metadata match criteria.
       The connection to the endpoint with metadata matching what is set in this field
       will use the transport socket configuration specified here.
       The endpoint's metadata entry in *envoy.transport_socket_match* is used to match
       against the values specified in this field.
       
      .google.protobuf.Struct match = 2;
    • getMatchBuilder

      public com.google.protobuf.Struct.Builder getMatchBuilder()
       Optional endpoint metadata match criteria.
       The connection to the endpoint with metadata matching what is set in this field
       will use the transport socket configuration specified here.
       The endpoint's metadata entry in *envoy.transport_socket_match* is used to match
       against the values specified in this field.
       
      .google.protobuf.Struct match = 2;
    • getMatchOrBuilder

      public com.google.protobuf.StructOrBuilder getMatchOrBuilder()
       Optional endpoint metadata match criteria.
       The connection to the endpoint with metadata matching what is set in this field
       will use the transport socket configuration specified here.
       The endpoint's metadata entry in *envoy.transport_socket_match* is used to match
       against the values specified in this field.
       
      .google.protobuf.Struct match = 2;
      Specified by:
      getMatchOrBuilder in interface Cluster.TransportSocketMatchOrBuilder
    • hasTransportSocket

      public boolean hasTransportSocket()
       The configuration of the transport socket.
       
      .envoy.api.v2.core.TransportSocket transport_socket = 3;
      Specified by:
      hasTransportSocket in interface Cluster.TransportSocketMatchOrBuilder
      Returns:
      Whether the transportSocket field is set.
    • getTransportSocket

      public TransportSocket getTransportSocket()
       The configuration of the transport socket.
       
      .envoy.api.v2.core.TransportSocket transport_socket = 3;
      Specified by:
      getTransportSocket in interface Cluster.TransportSocketMatchOrBuilder
      Returns:
      The transportSocket.
    • setTransportSocket

      public Cluster.TransportSocketMatch.Builder setTransportSocket(TransportSocket value)
       The configuration of the transport socket.
       
      .envoy.api.v2.core.TransportSocket transport_socket = 3;
    • setTransportSocket

      public Cluster.TransportSocketMatch.Builder setTransportSocket(TransportSocket.Builder builderForValue)
       The configuration of the transport socket.
       
      .envoy.api.v2.core.TransportSocket transport_socket = 3;
    • mergeTransportSocket

      public Cluster.TransportSocketMatch.Builder mergeTransportSocket(TransportSocket value)
       The configuration of the transport socket.
       
      .envoy.api.v2.core.TransportSocket transport_socket = 3;
    • clearTransportSocket

      public Cluster.TransportSocketMatch.Builder clearTransportSocket()
       The configuration of the transport socket.
       
      .envoy.api.v2.core.TransportSocket transport_socket = 3;
    • getTransportSocketBuilder

      public TransportSocket.Builder getTransportSocketBuilder()
       The configuration of the transport socket.
       
      .envoy.api.v2.core.TransportSocket transport_socket = 3;
    • getTransportSocketOrBuilder

      public TransportSocketOrBuilder getTransportSocketOrBuilder()
       The configuration of the transport socket.
       
      .envoy.api.v2.core.TransportSocket transport_socket = 3;
      Specified by:
      getTransportSocketOrBuilder in interface Cluster.TransportSocketMatchOrBuilder
    • setUnknownFields

      public final Cluster.TransportSocketMatch.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<Cluster.TransportSocketMatch.Builder>
    • mergeUnknownFields

      public final Cluster.TransportSocketMatch.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<Cluster.TransportSocketMatch.Builder>