Class LogTypeFilter.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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
,java.lang.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 typeenvoy.config.accesslog.v3.LogTypeFilter
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private boolean
exclude_
private com.google.protobuf.Internal.IntList
types_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LogTypeFilter.Builder
addAllTypes(java.lang.Iterable<? extends AccessLogType> values)
Logs only records which their type is one of the types defined in this field.LogTypeFilter.Builder
addAllTypesValue(java.lang.Iterable<java.lang.Integer> values)
Logs only records which their type is one of the types defined in this field.LogTypeFilter.Builder
addTypes(AccessLogType value)
Logs only records which their type is one of the types defined in this field.LogTypeFilter.Builder
addTypesValue(int value)
Logs only records which their type is one of the types defined in this field.LogTypeFilter
build()
LogTypeFilter
buildPartial()
private void
buildPartial0(LogTypeFilter result)
private void
buildPartialRepeatedFields(LogTypeFilter result)
LogTypeFilter.Builder
clear()
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.LogTypeFilter.Builder
clearTypes()
Logs only records which their type is one of the types defined in this field.private void
ensureTypesIsMutable()
LogTypeFilter
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.AccessLogType
getTypes(int index)
Logs only records which their type is one of the types defined in this field.int
getTypesCount()
Logs only records which their type is one of the types defined in this field.java.util.List<AccessLogType>
getTypesList()
Logs only records which their type is one of the types defined in this field.int
getTypesValue(int index)
Logs only records which their type is one of the types defined in this field.java.util.List<java.lang.Integer>
getTypesValueList()
Logs only records which their type is one of the types defined in this field.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LogTypeFilter.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LogTypeFilter.Builder
mergeFrom(com.google.protobuf.Message other)
LogTypeFilter.Builder
mergeFrom(LogTypeFilter other)
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.LogTypeFilter.Builder
setTypes(int index, AccessLogType value)
Logs only records which their type is one of the types defined in this field.LogTypeFilter.Builder
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, 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<LogTypeFilter.Builder>
-
clear
public LogTypeFilter.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<LogTypeFilter.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<LogTypeFilter.Builder>
-
getDefaultInstanceForType
public LogTypeFilter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogTypeFilter build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogTypeFilter buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(LogTypeFilter result)
-
buildPartial0
private void buildPartial0(LogTypeFilter result)
-
mergeFrom
public LogTypeFilter.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LogTypeFilter.Builder>
-
mergeFrom
public LogTypeFilter.Builder mergeFrom(LogTypeFilter other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<LogTypeFilter.Builder>
-
mergeFrom
public LogTypeFilter.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<LogTypeFilter.Builder>
- Throws:
java.io.IOException
-
ensureTypesIsMutable
private void ensureTypesIsMutable()
-
getTypesList
public java.util.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:
getTypesList
in 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:
getTypesCount
in 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:
getTypes
in 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(java.lang.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 java.util.List<java.lang.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:
getTypesValueList
in 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:
getTypesValue
in 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(java.lang.Iterable<java.lang.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:
getExclude
in 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.
-
-