code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Override public MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues( Iterable<FieldDescriptor> fieldDescriptors) { return subject.ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues( fieldDescriptors); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForValues( double tolerance) { return subject.usingDoubleToleranceForValues(tolerance); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingDoubleToleranceForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues( double tolerance, int firstFieldNumber, int... rest) { return subject.usingDoubleToleranceForFieldsForValues(tolerance, firstFieldNumber, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingDoubleToleranceForFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues( double tolerance, Iterable<Integer> fieldNumbers) { return subject.usingDoubleToleranceForFieldsForValues(tolerance, fieldNumbers); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingDoubleToleranceForFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues( double tolerance, FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return subject.usingDoubleToleranceForFieldDescriptorsForValues( tolerance, firstFieldDescriptor, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingDoubleToleranceForFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues( double tolerance, Iterable<FieldDescriptor> fieldDescriptors) { return subject.usingDoubleToleranceForFieldDescriptorsForValues(tolerance, fieldDescriptors); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingDoubleToleranceForFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForValues(float tolerance) { return subject.usingFloatToleranceForValues(tolerance); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingFloatToleranceForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues( float tolerance, int firstFieldNumber, int... rest) { return subject.usingFloatToleranceForFieldsForValues(tolerance, firstFieldNumber, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingFloatToleranceForFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues( float tolerance, Iterable<Integer> fieldNumbers) { return subject.usingFloatToleranceForFieldsForValues(tolerance, fieldNumbers); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingFloatToleranceForFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues( float tolerance, FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return subject.usingFloatToleranceForFieldDescriptorsForValues( tolerance, firstFieldDescriptor, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingFloatToleranceForFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues( float tolerance, Iterable<FieldDescriptor> fieldDescriptors) { return subject.usingFloatToleranceForFieldDescriptorsForValues(tolerance, fieldDescriptors); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingFloatToleranceForFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> comparingExpectedFieldsOnlyForValues() { return subject.comparingExpectedFieldsOnlyForValues(); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
comparingExpectedFieldsOnlyForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> withPartialScopeForValues( FieldScope fieldScope) { return subject.withPartialScopeForValues(fieldScope); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
withPartialScopeForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues( int firstFieldNumber, int... rest) { return subject.ignoringFieldsForValues(firstFieldNumber, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues( Iterable<Integer> fieldNumbers) { return subject.ignoringFieldsForValues(fieldNumbers); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return subject.ignoringFieldDescriptorsForValues(firstFieldDescriptor, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues( Iterable<FieldDescriptor> fieldDescriptors) { return subject.ignoringFieldDescriptorsForValues(fieldDescriptors); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldDescriptorsForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldScopeForValues( FieldScope fieldScope) { return subject.ignoringFieldScopeForValues(fieldScope); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldScopeForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> reportingMismatchesOnlyForValues() { return subject.reportingMismatchesOnlyForValues(); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
reportingMismatchesOnlyForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public MultimapWithProtoValuesFluentAssertion<M> unpackingAnyUsingForValues( TypeRegistry typeRegistry, ExtensionRegistry extensionRegistry) { return subject.unpackingAnyUsingForValues(typeRegistry, extensionRegistry); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
unpackingAnyUsingForValues
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public void containsEntry(@Nullable Object expectedKey, @Nullable M expectedValue) { subject .usingCorrespondence(Arrays.asList(expectedValue)) .containsEntry(expectedKey, expectedValue); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
containsEntry
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override public void doesNotContainEntry(@Nullable Object excludedKey, @Nullable M excludedValue) { subject .usingCorrespondence(Arrays.asList(excludedValue)) .doesNotContainEntry(excludedKey, excludedValue); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
doesNotContainEntry
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override @CanIgnoreReturnValue public Ordered containsExactlyEntriesIn(Multimap<?, ? extends M> expectedMap) { return subject .usingCorrespondence(expectedMap.values()) .containsExactlyEntriesIn(expectedMap); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
containsExactlyEntriesIn
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override @CanIgnoreReturnValue public Ordered containsExactly() { return subject.usingCorrespondence(ImmutableList.of()).containsExactly(); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
containsExactly
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@Override @CanIgnoreReturnValue @SuppressWarnings("unchecked") // ClassCastException is fine public Ordered containsExactly(@Nullable Object k0, @Nullable M v0, @Nullable Object... rest) { List<M> expectedValues = new ArrayList<>(); expectedValues.add(v0); for (int i = 1; i < rest.length; i += 2) { expectedValues.add((M) rest[i]); } return subject.usingCorrespondence(expectedValues).containsExactly(k0, v0, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
containsExactly
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@SuppressWarnings({"DoNotCall", "deprecation"}) @Override @Deprecated public boolean equals(Object o) { return subject.equals(o); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
equals
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
@SuppressWarnings({"DoNotCall", "deprecation"}) @Override @Deprecated public int hashCode() { return subject.hashCode(); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
hashCode
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MultimapWithProtoValuesSubject.java
Apache-2.0
ProtoFluentAssertionImpl usingConfig(FluentEqualityConfig newConfig) { return new ProtoFluentAssertionImpl(new ProtoSubject(metadata, newConfig, actual)); }
Truth subject for the full version of Protocol Buffers. <p>{@code ProtoTruth.assertThat(actual).isEqualTo(expected)} performs the same assertion as {@code Truth.assertThat(actual).isEqualTo(expected)}, but with a better failure message. By default, the assertions are strict with respect to repeated field order, missing fields, etc. This behavior can be changed with the configuration methods on this subject, e.g. {@code ProtoTruth.assertThat(actual).ignoringRepeatedFieldOrder().isEqualTo(expected)}. <p>By default, floating-point fields are compared using exact equality, which is <a href="https://truth.dev/floating_point">probably not what you want</a> if the values are the results of some arithmetic. To check for approximate equality, use {@link #usingDoubleTolerance}, {@link #usingFloatTolerance}, and {@linkplain #usingDoubleToleranceForFields(double, int, int...) their per-field equivalents}. <p>Equality tests, and other methods, may yield slightly different behavior for versions 2 and 3 of Protocol Buffers. If testing protos of multiple versions, make sure you understand the behaviors of default and unknown fields so you don't under or over test.
usingConfig
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringFieldAbsenceOfFields(int firstFieldNumber, int... rest) { return usingConfig(config.ignoringFieldAbsenceOfFields(asList(firstFieldNumber, rest))); }
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly (via {@link FieldDescriptor}) if they are to be ignored as well. <p>Use {@link #ignoringFieldAbsence()} instead to ignore the 'has' bit for all fields. @see #ignoringFieldAbsence() for details
ignoringFieldAbsenceOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringFieldAbsenceOfFields(Iterable<Integer> fieldNumbers) { return usingConfig(config.ignoringFieldAbsenceOfFields(fieldNumbers)); }
Specifies that the 'has' bit of these explicitly specified top-level field numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly (via {@link FieldDescriptor}) if they are to be ignored as well. <p>Use {@link #ignoringFieldAbsence()} instead to ignore the 'has' bit for all fields. @see #ignoringFieldAbsence() for details
ignoringFieldAbsenceOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringFieldAbsenceOfFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return usingConfig( config.ignoringFieldAbsenceOfFieldDescriptors(asList(firstFieldDescriptor, rest))); }
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored as well. <p>Use {@link #ignoringFieldAbsence()} instead to ignore the 'has' bit for all fields. @see #ignoringFieldAbsence() for details
ignoringFieldAbsenceOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringFieldAbsenceOfFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig(config.ignoringFieldAbsenceOfFieldDescriptors(fieldDescriptors)); }
Specifies that the 'has' bit of these explicitly specified field descriptors should be ignored when comparing for equality. Sub-fields must be specified explicitly if they are to be ignored as well. <p>Use {@link #ignoringFieldAbsence()} instead to ignore the 'has' bit for all fields. @see #ignoringFieldAbsence() for details
ignoringFieldAbsenceOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringRepeatedFieldOrder() { return usingConfig(config.ignoringRepeatedFieldOrder()); }
Specifies that the ordering of repeated fields, at all levels, should be ignored when comparing for equality. <p>This setting applies to all repeated fields recursively, but it does not ignore structure. For example, with {@link #ignoringRepeatedFieldOrder()}, a repeated {@code int32} field {@code bar}, set inside a repeated message field {@code foo}, the following protos will all compare equal: <pre>{@code message1: { foo: { bar: 1 bar: 2 } foo: { bar: 3 bar: 4 } } message2: { foo: { bar: 2 bar: 1 } foo: { bar: 4 bar: 3 } } message3: { foo: { bar: 4 bar: 3 } foo: { bar: 2 bar: 1 } } }</pre> <p>However, the following message will compare equal to none of these: <pre>{@code message4: { foo: { bar: 1 bar: 3 } foo: { bar: 2 bar: 4 } } }</pre> <p>This setting does not apply to map fields, for which field order is always ignored. The serialization order of map fields is undefined, and it may change from runtime to runtime.
ignoringRepeatedFieldOrder
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFields( int firstFieldNumber, int... rest) { return usingConfig(config.ignoringRepeatedFieldOrderOfFields(asList(firstFieldNumber, rest))); }
Specifies that the ordering of repeated fields for these explicitly specified top-level field numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly (via {@link FieldDescriptor}) if their orders are to be ignored as well. <p>Use {@link #ignoringRepeatedFieldOrder()} instead to ignore order for all fields. @see #ignoringRepeatedFieldOrder() for details.
ignoringRepeatedFieldOrderOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFields(Iterable<Integer> fieldNumbers) { return usingConfig(config.ignoringRepeatedFieldOrderOfFields(fieldNumbers)); }
Specifies that the ordering of repeated fields for these explicitly specified top-level field numbers should be ignored when comparing for equality. Sub-fields must be specified explicitly (via {@link FieldDescriptor}) if their orders are to be ignored as well. <p>Use {@link #ignoringRepeatedFieldOrder()} instead to ignore order for all fields. @see #ignoringRepeatedFieldOrder() for details.
ignoringRepeatedFieldOrderOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return usingConfig( config.ignoringRepeatedFieldOrderOfFieldDescriptors(asList(firstFieldDescriptor, rest))); }
Specifies that the ordering of repeated fields for these explicitly specified field descriptors should be ignored when comparing for equality. Sub-fields must be specified explicitly if their orders are to be ignored as well. <p>Use {@link #ignoringRepeatedFieldOrder()} instead to ignore order for all fields. @see #ignoringRepeatedFieldOrder() for details.
ignoringRepeatedFieldOrderOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig(config.ignoringRepeatedFieldOrderOfFieldDescriptors(fieldDescriptors)); }
Specifies that the ordering of repeated fields for these explicitly specified field descriptors should be ignored when comparing for equality. Sub-fields must be specified explicitly if their orders are to be ignored as well. <p>Use {@link #ignoringRepeatedFieldOrder()} instead to ignore order for all fields. @see #ignoringRepeatedFieldOrder() for details.
ignoringRepeatedFieldOrderOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringExtraRepeatedFieldElements() { return usingConfig(config.ignoringExtraRepeatedFieldElements()); }
Specifies that, for all repeated and map fields, any elements in the 'actual' proto which are not found in the 'expected' proto are ignored, with the exception of fields in the expected proto which are empty. To ignore empty repeated fields as well, use {@link #comparingExpectedFieldsOnly}. <p>This rule is applied independently from {@link #ignoringRepeatedFieldOrder}. If ignoring repeated field order AND extra repeated field elements, all that is tested is that the expected elements comprise a subset of the actual elements. If not ignoring repeated field order, but still ignoring extra repeated field elements, the actual elements must contain a subsequence that matches the expected elements for the test to pass. (The subsequence rule does not apply to Map fields, which are always compared by key.)
ignoringExtraRepeatedFieldElements
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFields( int firstFieldNumber, int... rest) { return usingConfig( config.ignoringExtraRepeatedFieldElementsOfFields(asList(firstFieldNumber, rest))); }
Specifies that extra repeated field elements for these explicitly specified top-level field numbers should be ignored. Sub-fields must be specified explicitly (via {@link FieldDescriptor}) if their extra elements are to be ignored as well. <p>Use {@link #ignoringExtraRepeatedFieldElements()} instead to ignore these for all fields. @see #ignoringExtraRepeatedFieldElements() for details.
ignoringExtraRepeatedFieldElementsOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFields( Iterable<Integer> fieldNumbers) { return usingConfig(config.ignoringExtraRepeatedFieldElementsOfFields(fieldNumbers)); }
Specifies that extra repeated field elements for these explicitly specified top-level field numbers should be ignored. Sub-fields must be specified explicitly (via {@link FieldDescriptor}) if their extra elements are to be ignored as well. <p>Use {@link #ignoringExtraRepeatedFieldElements()} instead to ignore these for all fields. @see #ignoringExtraRepeatedFieldElements() for details.
ignoringExtraRepeatedFieldElementsOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFieldDescriptors( FieldDescriptor first, FieldDescriptor... rest) { return usingConfig( config.ignoringExtraRepeatedFieldElementsOfFieldDescriptors(asList(first, rest))); }
Specifies that extra repeated field elements for these explicitly specified field descriptors should be ignored. Sub-fields must be specified explicitly if their extra elements are to be ignored as well. <p>Use {@link #ignoringExtraRepeatedFieldElements()} instead to ignore these for all fields. @see #ignoringExtraRepeatedFieldElements() for details.
ignoringExtraRepeatedFieldElementsOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig( config.ignoringExtraRepeatedFieldElementsOfFieldDescriptors(fieldDescriptors)); }
Specifies that extra repeated field elements for these explicitly specified field descriptors should be ignored. Sub-fields must be specified explicitly if their extra elements are to be ignored as well. <p>Use {@link #ignoringExtraRepeatedFieldElements()} instead to ignore these for all fields. @see #ignoringExtraRepeatedFieldElements() for details.
ignoringExtraRepeatedFieldElementsOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion usingDoubleTolerance(double tolerance) { return usingConfig(config.usingDoubleTolerance(tolerance)); }
Compares double fields as equal if they are both finite and their absolute difference is less than or equal to {@code tolerance}. @param tolerance A finite, non-negative tolerance.
usingDoubleTolerance
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion usingDoubleToleranceForFields( double tolerance, int firstFieldNumber, int... rest) { return usingConfig( config.usingDoubleToleranceForFields(tolerance, asList(firstFieldNumber, rest))); }
Compares double fields with these explicitly specified top-level field numbers using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingDoubleToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion usingDoubleToleranceForFields( double tolerance, Iterable<Integer> fieldNumbers) { return usingConfig(config.usingDoubleToleranceForFields(tolerance, fieldNumbers)); }
Compares double fields with these explicitly specified top-level field numbers using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingDoubleToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion usingDoubleToleranceForFieldDescriptors( double tolerance, FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return usingConfig( config.usingDoubleToleranceForFieldDescriptors( tolerance, asList(firstFieldDescriptor, rest))); }
Compares double fields with these explicitly specified fields using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingDoubleToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion usingDoubleToleranceForFieldDescriptors( double tolerance, Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig(config.usingDoubleToleranceForFieldDescriptors(tolerance, fieldDescriptors)); }
Compares double fields with these explicitly specified fields using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingDoubleToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion usingFloatTolerance(float tolerance) { return usingConfig(config.usingFloatTolerance(tolerance)); }
Compares float fields as equal if they are both finite and their absolute difference is less than or equal to {@code tolerance}. @param tolerance A finite, non-negative tolerance.
usingFloatTolerance
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion usingFloatToleranceForFields( float tolerance, int firstFieldNumber, int... rest) { return usingConfig( config.usingFloatToleranceForFields(tolerance, asList(firstFieldNumber, rest))); }
Compares float fields with these explicitly specified top-level field numbers using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingFloatToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion usingFloatToleranceForFields( float tolerance, Iterable<Integer> fieldNumbers) { return usingConfig(config.usingFloatToleranceForFields(tolerance, fieldNumbers)); }
Compares float fields with these explicitly specified top-level field numbers using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingFloatToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion usingFloatToleranceForFieldDescriptors( float tolerance, FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return usingConfig( config.usingFloatToleranceForFieldDescriptors( tolerance, asList(firstFieldDescriptor, rest))); }
Compares float fields with these explicitly specified fields using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingFloatToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion usingFloatToleranceForFieldDescriptors( float tolerance, Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig(config.usingFloatToleranceForFieldDescriptors(tolerance, fieldDescriptors)); }
Compares float fields with these explicitly specified top-level field numbers using the provided absolute tolerance. @param tolerance A finite, non-negative tolerance.
usingFloatToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringFields(int firstFieldNumber, int... rest) { return ignoringFields(asList(firstFieldNumber, rest)); }
Excludes the top-level message fields with the given tag numbers from the comparison. <p>This method adds on any previous {@link FieldScope} related settings, overriding previous changes to ensure the specified fields are ignored recursively. All sub-fields of these field numbers are ignored, and all sub-messages of type {@code M} will also have these field numbers ignored. <p>If an invalid field number is supplied, the terminal comparison operation will throw a runtime exception.
ignoringFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringFields(Iterable<Integer> fieldNumbers) { return usingConfig(config.ignoringFields(fieldNumbers)); }
Excludes the top-level message fields with the given tag numbers from the comparison. <p>This method adds on any previous {@link FieldScope} related settings, overriding previous changes to ensure the specified fields are ignored recursively. All sub-fields of these field numbers are ignored, and all sub-messages of type {@code M} will also have these field numbers ignored. <p>If an invalid field number is supplied, the terminal comparison operation will throw a runtime exception.
ignoringFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return ignoringFieldDescriptors(asList(firstFieldDescriptor, rest)); }
Excludes all message fields matching the given {@link FieldDescriptor}s from the comparison. <p>This method adds on any previous {@link FieldScope} related settings, overriding previous changes to ensure the specified fields are ignored recursively. All sub-fields of these field descriptors are ignored, no matter where they occur in the tree. <p>If a field descriptor which does not, or cannot occur in the proto structure is supplied, it is silently ignored.
ignoringFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringFieldDescriptors(Iterable<FieldDescriptor> fieldDescriptors) { return usingConfig(config.ignoringFieldDescriptors(fieldDescriptors)); }
Excludes all message fields matching the given {@link FieldDescriptor}s from the comparison. <p>This method adds on any previous {@link FieldScope} related settings, overriding previous changes to ensure the specified fields are ignored recursively. All sub-fields of these field descriptors are ignored, no matter where they occur in the tree. <p>If a field descriptor which does not, or cannot occur in the proto structure is supplied, it is silently ignored.
ignoringFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion ignoringFieldScope(FieldScope fieldScope) { return usingConfig(config.ignoringFieldScope(checkNotNull(fieldScope, "fieldScope"))); }
Excludes all specific field paths under the argument {@link FieldScope} from the comparison. <p>This method is additive and has well-defined ordering semantics. If the invoking {@link ProtoFluentAssertion} is already scoped to a {@link FieldScope} {@code X}, and this method is invoked with {@link FieldScope} {@code Y}, the resultant {@link ProtoFluentAssertion} is constrained to the subtraction of {@code X - Y}. <p>By default, {@link ProtoFluentAssertion} is constrained to {@link FieldScopes#all()}, that is, no fields are excluded from comparison.
ignoringFieldScope
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion reportingMismatchesOnly() { return usingConfig(config.reportingMismatchesOnly()); }
If set, in the event of a comparison failure, the error message printed will list only those specific fields that did not match between the actual and expected values. Useful for very large protocol buffers. <p>This a purely cosmetic setting, and it has no effect on the behavior of the test.
reportingMismatchesOnly
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
public ProtoFluentAssertion unpackingAnyUsing( TypeRegistry typeRegistry, ExtensionRegistry extensionRegistry) { return usingConfig(config.unpackingAnyUsing(typeRegistry, extensionRegistry)); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
unpackingAnyUsing
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
private static boolean sameClassMessagesWithDifferentDescriptors( @Nullable Message actual, @Nullable Object expected) { if (actual == null || !(expected instanceof Message) || actual.getClass() != expected.getClass()) { return false; } return actual.getDescriptorForType() != ((Message) expected).getDescriptorForType(); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
sameClassMessagesWithDifferentDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
private static boolean notMessagesWithSameDescriptor( @Nullable Message actual, @Nullable Object expected) { if (actual != null && expected instanceof Message) { return actual.getDescriptorForType() != ((Message) expected).getDescriptorForType(); } return true; }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
notMessagesWithSameDescriptor
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public void isEqualTo(@Nullable Object expected) { if (sameClassMessagesWithDifferentDescriptors(actual, expected)) { // This can happen with DynamicMessages, and it's very confusing if they both have the // same string. failWithoutActual( simpleFact("Not true that messages compare equal; they have different descriptors."), fact("expected", expected), fact("with descriptor", ((Message) expected).getDescriptorForType()), fact("but was", actual), fact("with descriptor", actual.getDescriptorForType())); } else if (notMessagesWithSameDescriptor(actual, expected)) { super.isEqualTo(expected); } else { DiffResult diffResult = makeDifferencer((Message) expected).diffMessages(actual, (Message) expected); if (!diffResult.isMatched()) { failWithoutActual( simpleFact( "Not true that messages compare equal.\n" + diffResult.printToString(config.reportMismatchesOnly()))); } } }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
isEqualTo
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public void isNotEqualTo(@Nullable Object expected) { if (notMessagesWithSameDescriptor(actual, expected)) { super.isNotEqualTo(expected); } else { DiffResult diffResult = makeDifferencer((Message) expected).diffMessages(actual, (Message) expected); if (diffResult.isMatched()) { failWithoutActual( simpleFact( "Not true that messages compare not equal.\n" + diffResult.printToString(config.reportMismatchesOnly()))); } } }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
isNotEqualTo
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public void hasAllRequiredFields() { if (!actual.isInitialized()) { failWithoutActual( simpleFact("expected to have all required fields set"), fact("but was missing", actual.findInitializationErrors()), fact("proto was", actualCustomStringRepresentationForProtoPackageMembersToCall())); } }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
hasAllRequiredFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
private ProtoTruthMessageDifferencer makeDifferencer(Message expected) { return config .withExpectedMessages(Arrays.asList(expected)) .toMessageDifferencer(actual.getDescriptorForType()); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
makeDifferencer
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringFieldAbsence() { return protoSubject.ignoringFieldAbsence(); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldAbsence
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringFieldAbsenceOfFields(int firstFieldNumber, int... rest) { return protoSubject.ignoringFieldAbsenceOfFields(firstFieldNumber, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldAbsenceOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringFieldAbsenceOfFields(Iterable<Integer> fieldNumbers) { return protoSubject.ignoringFieldAbsenceOfFields(fieldNumbers); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldAbsenceOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringFieldAbsenceOfFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return protoSubject.ignoringFieldAbsenceOfFieldDescriptors(firstFieldDescriptor, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldAbsenceOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringFieldAbsenceOfFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return protoSubject.ignoringFieldAbsenceOfFieldDescriptors(fieldDescriptors); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldAbsenceOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringRepeatedFieldOrder() { return protoSubject.ignoringRepeatedFieldOrder(); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringRepeatedFieldOrder
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFields( int firstFieldNumber, int... rest) { return protoSubject.ignoringRepeatedFieldOrderOfFields(firstFieldNumber, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringRepeatedFieldOrderOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFields(Iterable<Integer> fieldNumbers) { return protoSubject.ignoringRepeatedFieldOrderOfFields(fieldNumbers); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringRepeatedFieldOrderOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return protoSubject.ignoringRepeatedFieldOrderOfFieldDescriptors(firstFieldDescriptor, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringRepeatedFieldOrderOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringRepeatedFieldOrderOfFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return protoSubject.ignoringRepeatedFieldOrderOfFieldDescriptors(fieldDescriptors); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringRepeatedFieldOrderOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringExtraRepeatedFieldElements() { return protoSubject.ignoringExtraRepeatedFieldElements(); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringExtraRepeatedFieldElements
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFields( int firstFieldNumber, int... rest) { return protoSubject.ignoringExtraRepeatedFieldElementsOfFields(firstFieldNumber, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringExtraRepeatedFieldElementsOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFields( Iterable<Integer> fieldNumbers) { return protoSubject.ignoringExtraRepeatedFieldElementsOfFields(fieldNumbers); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringExtraRepeatedFieldElementsOfFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return protoSubject.ignoringExtraRepeatedFieldElementsOfFieldDescriptors( firstFieldDescriptor, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringExtraRepeatedFieldElementsOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringExtraRepeatedFieldElementsOfFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return protoSubject.ignoringExtraRepeatedFieldElementsOfFieldDescriptors(fieldDescriptors); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringExtraRepeatedFieldElementsOfFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion usingDoubleTolerance(double tolerance) { return protoSubject.usingDoubleTolerance(tolerance); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingDoubleTolerance
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion usingDoubleToleranceForFields( double tolerance, int firstFieldNumber, int... rest) { return protoSubject.usingDoubleToleranceForFields(tolerance, firstFieldNumber, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingDoubleToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion usingDoubleToleranceForFields( double tolerance, Iterable<Integer> fieldNumbers) { return protoSubject.usingDoubleToleranceForFields(tolerance, fieldNumbers); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingDoubleToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion usingDoubleToleranceForFieldDescriptors( double tolerance, FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return protoSubject.usingDoubleToleranceForFieldDescriptors( tolerance, firstFieldDescriptor, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingDoubleToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion usingDoubleToleranceForFieldDescriptors( double tolerance, Iterable<FieldDescriptor> fieldDescriptors) { return protoSubject.usingDoubleToleranceForFieldDescriptors(tolerance, fieldDescriptors); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingDoubleToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion usingFloatTolerance(float tolerance) { return protoSubject.usingFloatTolerance(tolerance); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingFloatTolerance
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion usingFloatToleranceForFields( float tolerance, int firstFieldNumber, int... rest) { return protoSubject.usingFloatToleranceForFields(tolerance, firstFieldNumber, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingFloatToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion usingFloatToleranceForFields( float tolerance, Iterable<Integer> fieldNumbers) { return protoSubject.usingFloatToleranceForFields(tolerance, fieldNumbers); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingFloatToleranceForFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion usingFloatToleranceForFieldDescriptors( float tolerance, FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return protoSubject.usingFloatToleranceForFieldDescriptors( tolerance, firstFieldDescriptor, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingFloatToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion usingFloatToleranceForFieldDescriptors( float tolerance, Iterable<FieldDescriptor> fieldDescriptors) { return protoSubject.usingFloatToleranceForFieldDescriptors(tolerance, fieldDescriptors); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
usingFloatToleranceForFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion comparingExpectedFieldsOnly() { return protoSubject.comparingExpectedFieldsOnly(); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
comparingExpectedFieldsOnly
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion withPartialScope(FieldScope fieldScope) { return protoSubject.withPartialScope(fieldScope); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
withPartialScope
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringFields(int firstFieldNumber, int... rest) { return protoSubject.ignoringFields(firstFieldNumber, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringFields(Iterable<Integer> fieldNumbers) { return protoSubject.ignoringFields(fieldNumbers); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFields
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringFieldDescriptors( FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) { return protoSubject.ignoringFieldDescriptors(firstFieldDescriptor, rest); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringFieldDescriptors( Iterable<FieldDescriptor> fieldDescriptors) { return protoSubject.ignoringFieldDescriptors(fieldDescriptors); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldDescriptors
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion ignoringFieldScope(FieldScope fieldScope) { return protoSubject.ignoringFieldScope(fieldScope); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
ignoringFieldScope
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion reportingMismatchesOnly() { return protoSubject.reportingMismatchesOnly(); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
reportingMismatchesOnly
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public ProtoFluentAssertion unpackingAnyUsing( TypeRegistry typeRegistry, ExtensionRegistry extensionRegistry) { return protoSubject.unpackingAnyUsing(typeRegistry, extensionRegistry); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
unpackingAnyUsing
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0
@Override public void isEqualTo(@Nullable Message expected) { protoSubject.isEqualTo(expected); }
Specifies the {@link TypeRegistry} and {@link ExtensionRegistry} to use for {@link com.google.protobuf.Any Any} messages. <p>To compare the value of an {@code Any} message, ProtoTruth looks in the given type registry for a descriptor for the message's type URL: <ul> <li>If ProtoTruth finds a descriptor, it unpacks the value and compares it against the expected value, respecting any configuration methods used for the assertion. <li>If ProtoTruth does not find a descriptor (or if the value can't be deserialized with the descriptor), it compares the raw, serialized bytes of the expected and actual values. </ul> <p>When ProtoTruth unpacks a value, it is parsing a serialized proto. That proto may contain extensions. To look up those extensions, ProtoTruth uses the provided {@link ExtensionRegistry}. @since 1.1
isEqualTo
java
google/truth
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/ProtoSubject.java
Apache-2.0