Class AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
com.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
io.envoyproxy.envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder
,Cloneable
- Enclosing class:
AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry
public static final class AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
implements AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder
Allows pre-populating the cache with HTTP/3 alternate protocols entries with a 7 day lifetime. This will cause Envoy to attempt HTTP/3 to those upstreams, even if the upstreams have not advertised HTTP/3 support. These entries will be overwritten by alt-svc response headers or cached values. As with regular cached entries, if the origin response would result in clearing an existing alternate protocol cache entry, pre-populated entries will also be cleared. Adding a cache entry with hostname=foo.com port=123 is the equivalent of getting response headers alt-svc: h3=:"123"; ma=86400" in a response to a request to foo.com:123Protobuf type
envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
clear()
The host name for the alternate protocol entry.The port for the alternate protocol entry.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The host name for the alternate protocol entry.com.google.protobuf.ByteString
The host name for the alternate protocol entry.int
getPort()
The port for the alternate protocol entry.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) setHostname
(String value) The host name for the alternate protocol entry.setHostnameBytes
(com.google.protobuf.ByteString value) The host name for the alternate protocol entry.setPort
(int value) The port for the alternate protocol entry.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_ -
hostname_
-
port_
private int port_
-
-
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<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
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<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.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<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.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
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
mergeFrom
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.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<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
- Throws:
IOException
-
getHostname
The host name for the alternate protocol entry.
string hostname = 1 [(.validate.rules) = { ... }
- Specified by:
getHostname
in interfaceAlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder
- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()The host name for the alternate protocol entry.
string hostname = 1 [(.validate.rules) = { ... }
- Specified by:
getHostnameBytes
in interfaceAlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder
- Returns:
- The bytes for hostname.
-
setHostname
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder setHostname(String value) The host name for the alternate protocol entry.
string hostname = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
The host name for the alternate protocol entry.
string hostname = 1 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
setHostnameBytes
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder setHostnameBytes(com.google.protobuf.ByteString value) The host name for the alternate protocol entry.
string hostname = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
getPort
public int getPort()The port for the alternate protocol entry.
uint32 port = 2 [(.validate.rules) = { ... }
- Specified by:
getPort
in interfaceAlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder
- Returns:
- The port.
-
setPort
The port for the alternate protocol entry.
uint32 port = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The port to set.- Returns:
- This builder for chaining.
-
clearPort
The port for the alternate protocol entry.
uint32 port = 2 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-