Class LogTypeFilter.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<LogTypeFilter.Builder> implements LogTypeFilterOrBuilder
Filters based on access log type.
Protobuf typeenvoy.config.accesslog.v3.LogTypeFilter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LogTypeFilter.BuilderaddAllTypes(Iterable<? extends AccessLogType> values)Logs only records which their type is one of the types defined in this field.LogTypeFilter.BuilderaddAllTypesValue(Iterable<Integer> values)Logs only records which their type is one of the types defined in this field.LogTypeFilter.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LogTypeFilter.BuilderaddTypes(AccessLogType value)Logs only records which their type is one of the types defined in this field.LogTypeFilter.BuilderaddTypesValue(int value)Logs only records which their type is one of the types defined in this field.LogTypeFilterbuild()LogTypeFilterbuildPartial()LogTypeFilter.Builderclear()LogTypeFilter.BuilderclearExclude()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.LogTypeFilter.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LogTypeFilter.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LogTypeFilter.BuilderclearTypes()Logs only records which their type is one of the types defined in this field.LogTypeFilter.Builderclone()LogTypeFiltergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetExclude()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.AccessLogTypegetTypes(int index)Logs only records which their type is one of the types defined in this field.intgetTypesCount()Logs only records which their type is one of the types defined in this field.List<AccessLogType>getTypesList()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.List<Integer>getTypesValueList()Logs only records which their type is one of the types defined in this field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LogTypeFilter.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LogTypeFilter.BuildermergeFrom(com.google.protobuf.Message other)LogTypeFilter.BuildermergeFrom(LogTypeFilter other)LogTypeFilter.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LogTypeFilter.BuildersetExclude(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.LogTypeFilter.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LogTypeFilter.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LogTypeFilter.BuildersetTypes(int index, AccessLogType value)Logs only records which their type is one of the types defined in this field.LogTypeFilter.BuildersetTypesValue(int index, int value)Logs only records which their type is one of the types defined in this field.LogTypeFilter.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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<LogTypeFilter.Builder>
-
clear
public LogTypeFilter.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<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.GeneratedMessageV3.Builder<LogTypeFilter.Builder>
-
getDefaultInstanceForType
public LogTypeFilter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogTypeFilter build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogTypeFilter buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LogTypeFilter.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<LogTypeFilter.Builder>
-
setField
public LogTypeFilter.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<LogTypeFilter.Builder>
-
clearField
public LogTypeFilter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogTypeFilter.Builder>
-
clearOneof
public LogTypeFilter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LogTypeFilter.Builder>
-
setRepeatedField
public LogTypeFilter.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<LogTypeFilter.Builder>
-
addRepeatedField
public LogTypeFilter.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<LogTypeFilter.Builder>
-
mergeFrom
public LogTypeFilter.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogTypeFilter.Builder>
-
mergeFrom
public LogTypeFilter.Builder mergeFrom(LogTypeFilter other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
-
getTypesList
public List<AccessLogType> 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
public AccessLogType getTypes(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:
getTypesin interfaceLogTypeFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The types at the given index.
-
setTypes
public LogTypeFilter.Builder setTypes(int index, AccessLogType value)
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
public LogTypeFilter.Builder addTypes(AccessLogType value)
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
public LogTypeFilter.Builder addAllTypes(Iterable<? extends AccessLogType> values)
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
public LogTypeFilter.Builder 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
public List<Integer> 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
public LogTypeFilter.Builder setTypesValue(int index, int value)
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
public LogTypeFilter.Builder addTypesValue(int value)
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.
-
addAllTypesValue
public LogTypeFilter.Builder addAllTypesValue(Iterable<Integer> values)
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.
-
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
public LogTypeFilter.Builder 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.
bool exclude = 2;- Parameters:
value- The exclude to set.- Returns:
- This builder for chaining.
-
clearExclude
public LogTypeFilter.Builder 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.
-
setUnknownFields
public final LogTypeFilter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogTypeFilter.Builder>
-
mergeUnknownFields
public final LogTypeFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogTypeFilter.Builder>
-
-