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 voidclear()The host name for the alternate protocol entry.The port for the alternate protocol entry.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe host name for the alternate protocol entry.com.google.protobuf.ByteStringThe host name for the alternate protocol entry.intgetPort()The port for the alternate protocol entry.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.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.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getHostnamein 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:
getHostnameBytesin 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:
getPortin 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.
-