Class Cluster.TransportSocketMatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Cluster.TransportSocketMatch.Builder>
com.google.protobuf.GeneratedMessage.Builder<Cluster.TransportSocketMatch.Builder>
io.envoyproxy.envoy.config.cluster.v3.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.GeneratedMessage.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.config.cluster.v3.Cluster.TransportSocketMatch
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private com.google.protobuf.Struct
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> private Object
private TransportSocket
private com.google.protobuf.SingleFieldBuilder
<TransportSocket, TransportSocket.Builder, TransportSocketOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
clear()
Optional metadata match criteria.The name of the match, used in stats generation.The configuration of the transport socket.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Struct
getMatch()
Optional metadata match criteria.com.google.protobuf.Struct.Builder
Optional metadata match criteria.com.google.protobuf.StructOrBuilder
Optional metadata match criteria.getName()
The name of the match, used in stats generation.com.google.protobuf.ByteString
The name of the match, used in stats generation.The configuration of the transport socket.The configuration of the transport socket.The configuration of the transport socket.boolean
hasMatch()
Optional metadata match criteria.boolean
The configuration of the transport socket.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> Optional metadata match criteria.private com.google.protobuf.SingleFieldBuilder
<TransportSocket, TransportSocket.Builder, TransportSocketOrBuilder> The configuration of the transport socket.final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeMatch
(com.google.protobuf.Struct value) Optional metadata match criteria.The configuration of the transport socket.setMatch
(com.google.protobuf.Struct value) Optional metadata match criteria.setMatch
(com.google.protobuf.Struct.Builder builderForValue) Optional metadata match criteria.The name of the match, used in stats generation.setNameBytes
(com.google.protobuf.ByteString value) The name of the match, used in stats generation.The configuration of the transport socket.setTransportSocket
(TransportSocket.Builder builderForValue) The configuration of the transport socket.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
name_
-
match_
private com.google.protobuf.Struct match_ -
matchBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Struct,com.google.protobuf.Struct.Builder, matchBuilder_com.google.protobuf.StructOrBuilder> -
transportSocket_
-
transportSocketBuilder_
private com.google.protobuf.SingleFieldBuilder<TransportSocket,TransportSocket.Builder, transportSocketBuilder_TransportSocketOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Cluster.TransportSocketMatch.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Cluster.TransportSocketMatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Cluster.TransportSocketMatch.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Cluster.TransportSocketMatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Cluster.TransportSocketMatch.Builder>
- Throws:
IOException
-
getName
The name of the match, used in stats generation.
string name = 1 [(.validate.rules) = { ... }
- Specified by:
getName
in interfaceCluster.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 interfaceCluster.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
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 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 interfaceCluster.TransportSocketMatchOrBuilder
- Returns:
- Whether the match field is set.
-
getMatch
public com.google.protobuf.Struct getMatch()Optional 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 interfaceCluster.TransportSocketMatchOrBuilder
- Returns:
- The match.
-
setMatch
Optional 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 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
Optional 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 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 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 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 interfaceCluster.TransportSocketMatchOrBuilder
-
internalGetMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Struct,com.google.protobuf.Struct.Builder, internalGetMatchFieldBuilder()com.google.protobuf.StructOrBuilder> Optional 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;
-
hasTransportSocket
public boolean hasTransportSocket()The configuration of the transport socket. [#extension-category: envoy.transport_sockets.upstream]
.envoy.config.core.v3.TransportSocket transport_socket = 3;
- Specified by:
hasTransportSocket
in interfaceCluster.TransportSocketMatchOrBuilder
- Returns:
- Whether the transportSocket field is set.
-
getTransportSocket
The configuration of the transport socket. [#extension-category: envoy.transport_sockets.upstream]
.envoy.config.core.v3.TransportSocket transport_socket = 3;
- Specified by:
getTransportSocket
in interfaceCluster.TransportSocketMatchOrBuilder
- Returns:
- The transportSocket.
-
setTransportSocket
The configuration of the transport socket. [#extension-category: envoy.transport_sockets.upstream]
.envoy.config.core.v3.TransportSocket transport_socket = 3;
-
setTransportSocket
public Cluster.TransportSocketMatch.Builder setTransportSocket(TransportSocket.Builder builderForValue) The configuration of the transport socket. [#extension-category: envoy.transport_sockets.upstream]
.envoy.config.core.v3.TransportSocket transport_socket = 3;
-
mergeTransportSocket
The configuration of the transport socket. [#extension-category: envoy.transport_sockets.upstream]
.envoy.config.core.v3.TransportSocket transport_socket = 3;
-
clearTransportSocket
The configuration of the transport socket. [#extension-category: envoy.transport_sockets.upstream]
.envoy.config.core.v3.TransportSocket transport_socket = 3;
-
getTransportSocketBuilder
The configuration of the transport socket. [#extension-category: envoy.transport_sockets.upstream]
.envoy.config.core.v3.TransportSocket transport_socket = 3;
-
getTransportSocketOrBuilder
The configuration of the transport socket. [#extension-category: envoy.transport_sockets.upstream]
.envoy.config.core.v3.TransportSocket transport_socket = 3;
- Specified by:
getTransportSocketOrBuilder
in interfaceCluster.TransportSocketMatchOrBuilder
-
internalGetTransportSocketFieldBuilder
private com.google.protobuf.SingleFieldBuilder<TransportSocket,TransportSocket.Builder, internalGetTransportSocketFieldBuilder()TransportSocketOrBuilder> The configuration of the transport socket. [#extension-category: envoy.transport_sockets.upstream]
.envoy.config.core.v3.TransportSocket transport_socket = 3;
-