Class AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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
,java.lang.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:123
Protobuf typeenvoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private java.lang.Object
hostname_
private int
port_
-
Method Summary
-
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
-
-
-
-
Method Detail
-
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
public 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
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry result)
-
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
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder mergeFrom(AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry other)
-
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 java.io.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:
java.io.IOException
-
getHostname
public java.lang.String 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(java.lang.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:
getPort
in 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.
-
-