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 ... | 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 ... | 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 ... | 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 ... | 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, firstFieldDe... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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, firstFieldDescr... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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; ... | 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 ... | 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 ... | 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 ... | 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, missin... | 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 field... | 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 field... | 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... | 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... | 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 r... | 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 i... | 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 i... | 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 #i... | 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 #i... | 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 ind... | 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 fo... | 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 fo... | 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 #ignoringExtraRe... | 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 #ignoringExtraRe... | 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 t... | 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 t... | 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 wher... | 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 wher... | 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}... | 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 ... | 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() != ((... | 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 ... | 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 ... | 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 c... | 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 ... | 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.isMatch... | 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 ... | 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", actualCustomStringRepresentationForProtoPackage... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 ... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.