Class AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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:123
Protobuf typeenvoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry
-
-
Method Summary
-
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, 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
-
-
-
-
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<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
getDefaultInstanceForType
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.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<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
setField
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
clearField
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
clearOneof
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
setRepeatedField
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
addRepeatedField
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
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
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder mergeFrom(AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String 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
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder 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
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder setPort(int value)
The port for the alternate protocol entry.
uint32 port = 2 [(.validate.rules) = { ... }- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
clearPort
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder clearPort()
The port for the alternate protocol entry.
uint32 port = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setUnknownFields
public final AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
mergeUnknownFields
public final AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
-
-