Class Thrift.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
- io.envoyproxy.envoy.extensions.health_checkers.thrift.v3.Thrift.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ThriftOrBuilder,java.lang.Cloneable
- Enclosing class:
- Thrift
public static final class Thrift.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder> implements ThriftOrBuilder
Protobuf typeenvoy.extensions.health_checkers.thrift.v3.Thrift
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Thrift.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Thriftbuild()ThriftbuildPartial()Thrift.Builderclear()Thrift.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Thrift.BuilderclearMethodName()Specifies the method name that will be set on each health check request dispatched to an upstream host.Thrift.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Thrift.BuilderclearProtocol()Configures the protocol type to be used with the health checks.Thrift.BuilderclearTransport()Configures the transport type to be used with the health checks.Thrift.Builderclone()ThriftgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetMethodName()Specifies the method name that will be set on each health check request dispatched to an upstream host.com.google.protobuf.ByteStringgetMethodNameBytes()Specifies the method name that will be set on each health check request dispatched to an upstream host.ProtocolTypegetProtocol()Configures the protocol type to be used with the health checks.intgetProtocolValue()Configures the protocol type to be used with the health checks.TransportTypegetTransport()Configures the transport type to be used with the health checks.intgetTransportValue()Configures the transport type to be used with the health checks.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Thrift.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Thrift.BuildermergeFrom(com.google.protobuf.Message other)Thrift.BuildermergeFrom(Thrift other)Thrift.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Thrift.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Thrift.BuildersetMethodName(java.lang.String value)Specifies the method name that will be set on each health check request dispatched to an upstream host.Thrift.BuildersetMethodNameBytes(com.google.protobuf.ByteString value)Specifies the method name that will be set on each health check request dispatched to an upstream host.Thrift.BuildersetProtocol(ProtocolType value)Configures the protocol type to be used with the health checks.Thrift.BuildersetProtocolValue(int value)Configures the protocol type to be used with the health checks.Thrift.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Thrift.BuildersetTransport(TransportType value)Configures the transport type to be used with the health checks.Thrift.BuildersetTransportValue(int value)Configures the transport type to be used with the health checks.Thrift.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
clear
public Thrift.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
getDefaultInstanceForType
public Thrift getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Thrift build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Thrift buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Thrift.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
setField
public Thrift.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
clearField
public Thrift.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
clearOneof
public Thrift.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
setRepeatedField
public Thrift.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
addRepeatedField
public Thrift.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
mergeFrom
public Thrift.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Thrift.Builder>
-
mergeFrom
public Thrift.Builder mergeFrom(Thrift other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
mergeFrom
public Thrift.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Thrift.Builder>- Throws:
java.io.IOException
-
getMethodName
public java.lang.String getMethodName()
Specifies the method name that will be set on each health check request dispatched to an upstream host. Note that method name is case sensitive.
string method_name = 1 [(.validate.rules) = { ... }- Specified by:
getMethodNamein interfaceThriftOrBuilder- Returns:
- The methodName.
-
getMethodNameBytes
public com.google.protobuf.ByteString getMethodNameBytes()
Specifies the method name that will be set on each health check request dispatched to an upstream host. Note that method name is case sensitive.
string method_name = 1 [(.validate.rules) = { ... }- Specified by:
getMethodNameBytesin interfaceThriftOrBuilder- Returns:
- The bytes for methodName.
-
setMethodName
public Thrift.Builder setMethodName(java.lang.String value)
Specifies the method name that will be set on each health check request dispatched to an upstream host. Note that method name is case sensitive.
string method_name = 1 [(.validate.rules) = { ... }- Parameters:
value- The methodName to set.- Returns:
- This builder for chaining.
-
clearMethodName
public Thrift.Builder clearMethodName()
Specifies the method name that will be set on each health check request dispatched to an upstream host. Note that method name is case sensitive.
string method_name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setMethodNameBytes
public Thrift.Builder setMethodNameBytes(com.google.protobuf.ByteString value)
Specifies the method name that will be set on each health check request dispatched to an upstream host. Note that method name is case sensitive.
string method_name = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for methodName to set.- Returns:
- This builder for chaining.
-
getTransportValue
public int getTransportValue()
Configures the transport type to be used with the health checks. Note that :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>` is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>` since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`. [#extension-category: envoy.filters.network]
.envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 2 [(.validate.rules) = { ... }- Specified by:
getTransportValuein interfaceThriftOrBuilder- Returns:
- The enum numeric value on the wire for transport.
-
setTransportValue
public Thrift.Builder setTransportValue(int value)
Configures the transport type to be used with the health checks. Note that :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>` is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>` since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`. [#extension-category: envoy.filters.network]
.envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 2 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for transport to set.- Returns:
- This builder for chaining.
-
getTransport
public TransportType getTransport()
Configures the transport type to be used with the health checks. Note that :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>` is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>` since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`. [#extension-category: envoy.filters.network]
.envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 2 [(.validate.rules) = { ... }- Specified by:
getTransportin interfaceThriftOrBuilder- Returns:
- The transport.
-
setTransport
public Thrift.Builder setTransport(TransportType value)
Configures the transport type to be used with the health checks. Note that :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>` is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>` since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`. [#extension-category: envoy.filters.network]
.envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 2 [(.validate.rules) = { ... }- Parameters:
value- The transport to set.- Returns:
- This builder for chaining.
-
clearTransport
public Thrift.Builder clearTransport()
Configures the transport type to be used with the health checks. Note that :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>` is not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>` since it's possible to set to :ref:`AUTO_TRANSPORT<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.TransportType.AUTO_TRANSPORT>`. [#extension-category: envoy.filters.network]
.envoy.extensions.filters.network.thrift_proxy.v3.TransportType transport = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getProtocolValue
public int getProtocolValue()
Configures the protocol type to be used with the health checks. Note that :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>` and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>` are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>` since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>` or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
.envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }- Specified by:
getProtocolValuein interfaceThriftOrBuilder- Returns:
- The enum numeric value on the wire for protocol.
-
setProtocolValue
public Thrift.Builder setProtocolValue(int value)
Configures the protocol type to be used with the health checks. Note that :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>` and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>` are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>` since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>` or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
.envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for protocol to set.- Returns:
- This builder for chaining.
-
getProtocol
public ProtocolType getProtocol()
Configures the protocol type to be used with the health checks. Note that :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>` and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>` are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>` since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>` or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
.envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }- Specified by:
getProtocolin interfaceThriftOrBuilder- Returns:
- The protocol.
-
setProtocol
public Thrift.Builder setProtocol(ProtocolType value)
Configures the protocol type to be used with the health checks. Note that :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>` and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>` are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>` since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>` or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
.envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
public Thrift.Builder clearProtocol()
Configures the protocol type to be used with the health checks. Note that :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>` and :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>` are not supported, and we don't honor :ref:`ThriftProtocolOptions<envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.ThriftProtocolOptions>` since it's possible to set to :ref:`AUTO_PROTOCOL<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.AUTO_PROTOCOL>` or :ref:`TWITTER<envoy_v3_api_enum_value_extensions.filters.network.thrift_proxy.v3.ProtocolType.TWITTER>`.
.envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType protocol = 3 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setUnknownFields
public final Thrift.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
mergeUnknownFields
public final Thrift.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Thrift.Builder>
-
-