Uses of Class
com.google.common.truth.extensions.proto.FieldScope
-
Packages that use FieldScope Package Description com.google.common.truth.extensions.proto Custom subjects for testing Protocol Buffer instances. -
-
Uses of FieldScope in com.google.common.truth.extensions.proto
Methods in com.google.common.truth.extensions.proto that return FieldScope Modifier and Type Method Description static FieldScope
FieldScopes. all()
Returns aFieldScope
which matches all fields without exception.abstract FieldScope
FieldScope. allowingFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, Descriptors.FieldDescriptor... rest)
Returns aFieldScope
equivalent to this one, plus all fields matching the givenDescriptors.FieldDescriptor
s.abstract FieldScope
FieldScope. allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
Returns aFieldScope
equivalent to this one, plus all fields matching the givenDescriptors.FieldDescriptor
s.static FieldScope
FieldScopes. allowingFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, Descriptors.FieldDescriptor... rest)
Returns aFieldScope
which matches nothing except the provided field descriptors for the message.static FieldScope
FieldScopes. allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
Returns aFieldScope
which matches nothing except the provided field descriptors for the message.abstract FieldScope
FieldScope. allowingFields(int firstFieldNumber, int... rest)
Returns aFieldScope
equivalent to this one, plus all fields defined by the given field numbers.abstract FieldScope
FieldScope. allowingFields(Iterable<Integer> fieldNumbers)
Returns aFieldScope
equivalent to this one, plus all fields defined by the given field numbers.static FieldScope
FieldScopes. allowingFields(int firstFieldNumber, int... rest)
Returns aFieldScope
which matches nothing except the provided field numbers for the top level message type.static FieldScope
FieldScopes. allowingFields(Iterable<Integer> fieldNumbers)
Returns aFieldScope
which matches nothing except the provided field numbers for the top level message type.static FieldScope
FieldScopes. fromSetFields(Message message)
Returns aFieldScope
which is constrained to precisely those specific field paths that are explicitly set in the message.static FieldScope
FieldScopes. fromSetFields(Message firstMessage, Message secondMessage, Message... rest)
Creates aFieldScope
covering the fields set in every message in the provided list of messages, with the same semantics as inFieldScopes.fromSetFields(Message)
.static FieldScope
FieldScopes. fromSetFields(Message message, TypeRegistry typeRegistry, ExtensionRegistry extensionRegistry)
Returns aFieldScope
which is constrained to precisely those specific field paths that are explicitly set in the message.static FieldScope
FieldScopes. fromSetFields(Iterable<? extends Message> messages)
Creates aFieldScope
covering the fields set in every message in the provided list of messages, with the same semantics as inFieldScopes.fromSetFields(Message)
.static FieldScope
FieldScopes. fromSetFields(Iterable<? extends Message> messages, TypeRegistry typeRegistry, ExtensionRegistry extensionRegistry)
Creates aFieldScope
covering the fields set in every message in the provided list of messages, with the same semantics as inFieldScopes.fromSetFields(Message)
.abstract FieldScope
FieldScope. ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, Descriptors.FieldDescriptor... rest)
Returns aFieldScope
equivalent to this one, minus all fields matching the givenDescriptors.FieldDescriptor
s.abstract FieldScope
FieldScope. ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
Returns aFieldScope
equivalent to this one, minus all fields defined by the given field numbers.static FieldScope
FieldScopes. ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, Descriptors.FieldDescriptor... rest)
Returns aFieldScope
which matches everything except the provided field descriptors for the message.static FieldScope
FieldScopes. ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)
Returns aFieldScope
which matches everything except the provided field descriptors for the message.abstract FieldScope
FieldScope. ignoringFields(int firstFieldNumber, int... rest)
Returns aFieldScope
equivalent to this one, minus all fields defined by the given field numbers.abstract FieldScope
FieldScope. ignoringFields(Iterable<Integer> fieldNumbers)
Returns aFieldScope
equivalent to this one, minus all fields defined by the given field numbers.static FieldScope
FieldScopes. ignoringFields(int firstFieldNumber, int... rest)
Returns aFieldScope
which matches everything except the provided field numbers for the top level message type.static FieldScope
FieldScopes. ignoringFields(Iterable<Integer> fieldNumbers)
Returns aFieldScope
which matches everything except the provided field numbers for the top level message type.static FieldScope
FieldScopes. none()
Returns aFieldScope
which matches no fields.Methods in com.google.common.truth.extensions.proto with parameters of type FieldScope Modifier and Type Method Description IterableOfProtosFluentAssertion<M>
IterableOfProtosFluentAssertion. ignoringFieldScope(FieldScope fieldScope)
Excludes all specific field paths under the argumentFieldScope
from the comparison.IterableOfProtosFluentAssertion<M>
IterableOfProtosSubject. ignoringFieldScope(FieldScope fieldScope)
Excludes all specific field paths under the argumentFieldScope
from the comparison.ProtoFluentAssertion
ProtoFluentAssertion. ignoringFieldScope(FieldScope fieldScope)
Excludes all specific field paths under the argumentFieldScope
from the comparison.ProtoFluentAssertion
ProtoSubject. ignoringFieldScope(FieldScope fieldScope)
Excludes all specific field paths under the argumentFieldScope
from the comparison.MapWithProtoValuesFluentAssertion<M>
MapWithProtoValuesFluentAssertion. ignoringFieldScopeForValues(FieldScope fieldScope)
Excludes all specific field paths under the argumentFieldScope
from the comparison.MapWithProtoValuesFluentAssertion<M>
MapWithProtoValuesSubject. ignoringFieldScopeForValues(FieldScope fieldScope)
Excludes all specific field paths under the argumentFieldScope
from the comparison.MultimapWithProtoValuesFluentAssertion<M>
MultimapWithProtoValuesFluentAssertion. ignoringFieldScopeForValues(FieldScope fieldScope)
Excludes all specific field paths under the argumentFieldScope
from the comparison.MultimapWithProtoValuesFluentAssertion<M>
MultimapWithProtoValuesSubject. ignoringFieldScopeForValues(FieldScope fieldScope)
Excludes all specific field paths under the argumentFieldScope
from the comparison.IterableOfProtosFluentAssertion<M>
IterableOfProtosFluentAssertion. withPartialScope(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the definedFieldScope
.IterableOfProtosFluentAssertion<M>
IterableOfProtosSubject. withPartialScope(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the definedFieldScope
.ProtoFluentAssertion
ProtoFluentAssertion. withPartialScope(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the definedFieldScope
.ProtoFluentAssertion
ProtoSubject. withPartialScope(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the definedFieldScope
.MapWithProtoValuesFluentAssertion<M>
MapWithProtoValuesFluentAssertion. withPartialScopeForValues(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the definedFieldScope
.MapWithProtoValuesFluentAssertion<M>
MapWithProtoValuesSubject. withPartialScopeForValues(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the definedFieldScope
.MultimapWithProtoValuesFluentAssertion<M>
MultimapWithProtoValuesFluentAssertion. withPartialScopeForValues(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the definedFieldScope
.MultimapWithProtoValuesFluentAssertion<M>
MultimapWithProtoValuesSubject. withPartialScopeForValues(FieldScope fieldScope)
Limits the comparison of Protocol buffers to the definedFieldScope
.
-