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 FieldScopeFieldScopes. all()Returns aFieldScopewhich matches all fields without exception.abstract FieldScopeFieldScope. allowingFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, Descriptors.FieldDescriptor... rest)Returns aFieldScopeequivalent to this one, plus all fields matching the givenDescriptors.FieldDescriptors.abstract FieldScopeFieldScope. allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)Returns aFieldScopeequivalent to this one, plus all fields matching the givenDescriptors.FieldDescriptors.static FieldScopeFieldScopes. allowingFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, Descriptors.FieldDescriptor... rest)Returns aFieldScopewhich matches nothing except the provided field descriptors for the message.static FieldScopeFieldScopes. allowingFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)Returns aFieldScopewhich matches nothing except the provided field descriptors for the message.abstract FieldScopeFieldScope. allowingFields(int firstFieldNumber, int... rest)Returns aFieldScopeequivalent to this one, plus all fields defined by the given field numbers.abstract FieldScopeFieldScope. allowingFields(Iterable<Integer> fieldNumbers)Returns aFieldScopeequivalent to this one, plus all fields defined by the given field numbers.static FieldScopeFieldScopes. allowingFields(int firstFieldNumber, int... rest)Returns aFieldScopewhich matches nothing except the provided field numbers for the top level message type.static FieldScopeFieldScopes. allowingFields(Iterable<Integer> fieldNumbers)Returns aFieldScopewhich matches nothing except the provided field numbers for the top level message type.static FieldScopeFieldScopes. fromSetFields(Message message)Returns aFieldScopewhich is constrained to precisely those specific field paths that are explicitly set in the message.static FieldScopeFieldScopes. fromSetFields(Message firstMessage, Message secondMessage, Message... rest)Creates aFieldScopecovering the fields set in every message in the provided list of messages, with the same semantics as inFieldScopes.fromSetFields(Message).static FieldScopeFieldScopes. fromSetFields(Iterable<? extends Message> messages)Creates aFieldScopecovering the fields set in every message in the provided list of messages, with the same semantics as inFieldScopes.fromSetFields(Message).abstract FieldScopeFieldScope. ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, Descriptors.FieldDescriptor... rest)Returns aFieldScopeequivalent to this one, minus all fields matching the givenDescriptors.FieldDescriptors.abstract FieldScopeFieldScope. ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)Returns aFieldScopeequivalent to this one, minus all fields defined by the given field numbers.static FieldScopeFieldScopes. ignoringFieldDescriptors(Descriptors.FieldDescriptor firstFieldDescriptor, Descriptors.FieldDescriptor... rest)Returns aFieldScopewhich matches everything except the provided field descriptors for the message.static FieldScopeFieldScopes. ignoringFieldDescriptors(Iterable<Descriptors.FieldDescriptor> fieldDescriptors)Returns aFieldScopewhich matches everything except the provided field descriptors for the message.abstract FieldScopeFieldScope. ignoringFields(int firstFieldNumber, int... rest)Returns aFieldScopeequivalent to this one, minus all fields defined by the given field numbers.abstract FieldScopeFieldScope. ignoringFields(Iterable<Integer> fieldNumbers)Returns aFieldScopeequivalent to this one, minus all fields defined by the given field numbers.static FieldScopeFieldScopes. ignoringFields(int firstFieldNumber, int... rest)Returns aFieldScopewhich matches everything except the provided field numbers for the top level message type.static FieldScopeFieldScopes. ignoringFields(Iterable<Integer> fieldNumbers)Returns aFieldScopewhich matches everything except the provided field numbers for the top level message type.static FieldScopeFieldScopes. none()Returns aFieldScopewhich 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 argumentFieldScopefrom the comparison.IterableOfProtosFluentAssertion<M>IterableOfProtosSubject. ignoringFieldScope(FieldScope fieldScope)Excludes all specific field paths under the argumentFieldScopefrom the comparison.ProtoFluentAssertionProtoFluentAssertion. ignoringFieldScope(FieldScope fieldScope)Excludes all specific field paths under the argumentFieldScopefrom the comparison.ProtoFluentAssertionProtoSubject. ignoringFieldScope(FieldScope fieldScope)Excludes all specific field paths under the argumentFieldScopefrom the comparison.MapWithProtoValuesFluentAssertion<M>MapWithProtoValuesFluentAssertion. ignoringFieldScopeForValues(FieldScope fieldScope)Excludes all specific field paths under the argumentFieldScopefrom the comparison.MapWithProtoValuesFluentAssertion<M>MapWithProtoValuesSubject. ignoringFieldScopeForValues(FieldScope fieldScope)Excludes all specific field paths under the argumentFieldScopefrom the comparison.MultimapWithProtoValuesFluentAssertion<M>MultimapWithProtoValuesFluentAssertion. ignoringFieldScopeForValues(FieldScope fieldScope)Excludes all specific field paths under the argumentFieldScopefrom the comparison.MultimapWithProtoValuesFluentAssertion<M>MultimapWithProtoValuesSubject. ignoringFieldScopeForValues(FieldScope fieldScope)Excludes all specific field paths under the argumentFieldScopefrom 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.ProtoFluentAssertionProtoFluentAssertion. withPartialScope(FieldScope fieldScope)Limits the comparison of Protocol buffers to the definedFieldScope.ProtoFluentAssertionProtoSubject. 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.
-