Class CdnLoopConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CdnLoopConfig.Builder>
io.envoyproxy.envoy.extensions.filters.http.cdn_loop.v3.CdnLoopConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CdnLoopConfigOrBuilder,Cloneable
- Enclosing class:
- CdnLoopConfig
public static final class CdnLoopConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CdnLoopConfig.Builder>
implements CdnLoopConfigOrBuilder
CDN-Loop Header filter config. See the :ref:`configuration overview <config_http_filters_cdn_loop>` for more information.Protobuf type
envoy.extensions.filters.http.cdn_loop.v3.CdnLoopConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The CDN identifier to use for loop checks and to append to the CDN-Loop header.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The maximum allowed count of cdn_id in the downstream CDN-Loop request header.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()getCdnId()The CDN identifier to use for loop checks and to append to the CDN-Loop header.com.google.protobuf.ByteStringThe CDN identifier to use for loop checks and to append to the CDN-Loop header.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe maximum allowed count of cdn_id in the downstream CDN-Loop request header.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CdnLoopConfig other) final CdnLoopConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The CDN identifier to use for loop checks and to append to the CDN-Loop header.setCdnIdBytes(com.google.protobuf.ByteString value) The CDN identifier to use for loop checks and to append to the CDN-Loop header.setMaxAllowedOccurrences(int value) The maximum allowed count of cdn_id in the downstream CDN-Loop request header.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final CdnLoopConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 java.lang.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
-
Method Details
-
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<CdnLoopConfig.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<CdnLoopConfig.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<CdnLoopConfig.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CdnLoopConfig.Builder>
-
setField
public CdnLoopConfig.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<CdnLoopConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CdnLoopConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CdnLoopConfig.Builder>
-
setRepeatedField
public CdnLoopConfig.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<CdnLoopConfig.Builder>
-
addRepeatedField
public CdnLoopConfig.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<CdnLoopConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CdnLoopConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CdnLoopConfig.Builder>
-
mergeFrom
public CdnLoopConfig.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<CdnLoopConfig.Builder>- Throws:
IOException
-
getCdnId
The CDN identifier to use for loop checks and to append to the CDN-Loop header. RFC 8586 calls this the cdn-id. The cdn-id can either be a pseudonym or hostname the CDN is in control of. cdn_id must not be empty.
string cdn_id = 1 [(.validate.rules) = { ... }- Specified by:
getCdnIdin interfaceCdnLoopConfigOrBuilder- Returns:
- The cdnId.
-
getCdnIdBytes
public com.google.protobuf.ByteString getCdnIdBytes()The CDN identifier to use for loop checks and to append to the CDN-Loop header. RFC 8586 calls this the cdn-id. The cdn-id can either be a pseudonym or hostname the CDN is in control of. cdn_id must not be empty.
string cdn_id = 1 [(.validate.rules) = { ... }- Specified by:
getCdnIdBytesin interfaceCdnLoopConfigOrBuilder- Returns:
- The bytes for cdnId.
-
setCdnId
The CDN identifier to use for loop checks and to append to the CDN-Loop header. RFC 8586 calls this the cdn-id. The cdn-id can either be a pseudonym or hostname the CDN is in control of. cdn_id must not be empty.
string cdn_id = 1 [(.validate.rules) = { ... }- Parameters:
value- The cdnId to set.- Returns:
- This builder for chaining.
-
clearCdnId
The CDN identifier to use for loop checks and to append to the CDN-Loop header. RFC 8586 calls this the cdn-id. The cdn-id can either be a pseudonym or hostname the CDN is in control of. cdn_id must not be empty.
string cdn_id = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setCdnIdBytes
The CDN identifier to use for loop checks and to append to the CDN-Loop header. RFC 8586 calls this the cdn-id. The cdn-id can either be a pseudonym or hostname the CDN is in control of. cdn_id must not be empty.
string cdn_id = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for cdnId to set.- Returns:
- This builder for chaining.
-
getMaxAllowedOccurrences
public int getMaxAllowedOccurrences()The maximum allowed count of cdn_id in the downstream CDN-Loop request header. The default of 0 means a request can transit the CdnLoopFilter once. A value of 1 means that a request can transit the CdnLoopFilter twice and so on.
uint32 max_allowed_occurrences = 2;- Specified by:
getMaxAllowedOccurrencesin interfaceCdnLoopConfigOrBuilder- Returns:
- The maxAllowedOccurrences.
-
setMaxAllowedOccurrences
The maximum allowed count of cdn_id in the downstream CDN-Loop request header. The default of 0 means a request can transit the CdnLoopFilter once. A value of 1 means that a request can transit the CdnLoopFilter twice and so on.
uint32 max_allowed_occurrences = 2;- Parameters:
value- The maxAllowedOccurrences to set.- Returns:
- This builder for chaining.
-
clearMaxAllowedOccurrences
The maximum allowed count of cdn_id in the downstream CDN-Loop request header. The default of 0 means a request can transit the CdnLoopFilter once. A value of 1 means that a request can transit the CdnLoopFilter twice and so on.
uint32 max_allowed_occurrences = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CdnLoopConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CdnLoopConfig.Builder>
-
mergeUnknownFields
public final CdnLoopConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CdnLoopConfig.Builder>
-