Class LogTypeFilter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<LogTypeFilter.Builder>
com.google.protobuf.GeneratedMessage.Builder<LogTypeFilter.Builder>
io.envoyproxy.envoy.config.accesslog.v3.LogTypeFilter.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, LogTypeFilterOrBuilder, Cloneable
- Enclosing class:
LogTypeFilter
public static final class LogTypeFilter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LogTypeFilter.Builder>
implements LogTypeFilterOrBuilder
Filters based on access log type.Protobuf type
envoy.config.accesslog.v3.LogTypeFilter-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate booleanprivate com.google.protobuf.Internal.IntList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllTypes(Iterable<? extends AccessLogType> values) Logs only records which their type is one of the types defined in this field.addAllTypesValue(Iterable<Integer> values) Logs only records which their type is one of the types defined in this field.addTypes(AccessLogType value) Logs only records which their type is one of the types defined in this field.addTypesValue(int value) Logs only records which their type is one of the types defined in this field.build()private voidbuildPartial0(LogTypeFilter result) clear()If this field is set to true, the filter will instead block all records with a access log type in types field, and allow all other records.Logs only records which their type is one of the types defined in this field.private voidstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf this field is set to true, the filter will instead block all records with a access log type in types field, and allow all other records.getTypes(int index) Logs only records which their type is one of the types defined in this field.intLogs only records which their type is one of the types defined in this field.Logs only records which their type is one of the types defined in this field.intgetTypesValue(int index) Logs only records which their type is one of the types defined in this field.Logs only records which their type is one of the types defined in this field.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(LogTypeFilter other) setExclude(boolean value) If this field is set to true, the filter will instead block all records with a access log type in types field, and allow all other records.setTypes(int index, AccessLogType value) Logs only records which their type is one of the types defined in this field.setTypesValue(int index, int value) Logs only records which their type is one of the types defined in this field.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_ -
types_
private com.google.protobuf.Internal.IntList types_ -
exclude_
private boolean exclude_
-
-
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<LogTypeFilter.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<LogTypeFilter.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<LogTypeFilter.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogTypeFilter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LogTypeFilter.Builder>
-
mergeFrom
public LogTypeFilter.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<LogTypeFilter.Builder>- Throws:
IOException
-
ensureTypesIsMutable
private void ensureTypesIsMutable() -
getTypesList
Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Specified by:
getTypesListin interfaceLogTypeFilterOrBuilder- Returns:
- A list containing the types.
-
getTypesCount
public int getTypesCount()Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Specified by:
getTypesCountin interfaceLogTypeFilterOrBuilder- Returns:
- The count of types.
-
getTypes
Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Specified by:
getTypesin interfaceLogTypeFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The types at the given index.
-
setTypes
Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Parameters:
index- The index to set the value at.value- The types to set.- Returns:
- This builder for chaining.
-
addTypes
Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Parameters:
value- The types to add.- Returns:
- This builder for chaining.
-
addAllTypes
Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Parameters:
values- The types to add.- Returns:
- This builder for chaining.
-
clearTypes
Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getTypesValueList
Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Specified by:
getTypesValueListin interfaceLogTypeFilterOrBuilder- Returns:
- A list containing the enum numeric values on the wire for types.
-
getTypesValue
public int getTypesValue(int index) Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Specified by:
getTypesValuein interfaceLogTypeFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of types at the given index.
-
setTypesValue
Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for types to set.- Returns:
- This builder for chaining.
-
addTypesValue
Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for types to add.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
addAllTypesValue
Logs only records which their type is one of the types defined in this field.
repeated .envoy.data.accesslog.v3.AccessLogType types = 1 [(.validate.rules) = { ... }- Parameters:
values- The enum numeric values on the wire for types to add.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getExclude
public boolean getExclude()If this field is set to true, the filter will instead block all records with a access log type in types field, and allow all other records.
bool exclude = 2;- Specified by:
getExcludein interfaceLogTypeFilterOrBuilder- Returns:
- The exclude.
-
setExclude
If this field is set to true, the filter will instead block all records with a access log type in types field, and allow all other records.
bool exclude = 2;- Parameters:
value- The exclude to set.- Returns:
- This builder for chaining.
-
clearExclude
If this field is set to true, the filter will instead block all records with a access log type in types field, and allow all other records.
bool exclude = 2;- Returns:
- This builder for chaining.
-