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 |
|---|---|---|---|---|---|---|---|
public MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(
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.
|
usingFloatToleranceForFieldsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
public MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(
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.
|
usingFloatToleranceForFieldsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
public MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(
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.
|
usingFloatToleranceForFieldDescriptorsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
public MapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(
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.
|
usingFloatToleranceForFieldDescriptorsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
public MapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(
int firstFieldNumber, int... rest) {
return ignoringFieldsForValues(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.
|
ignoringFieldsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
public MapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(
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.
|
ignoringFieldsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
public MapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(
FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) {
return ignoringFieldDescriptorsForValues(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.
|
ignoringFieldDescriptorsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
public MapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(
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.
|
ignoringFieldDescriptorsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
public MapWithProtoValuesFluentAssertion<M> ignoringFieldScopeForValues(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.
|
ignoringFieldScopeForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
public MapWithProtoValuesFluentAssertion<M> reportingMismatchesOnlyForValues() {
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.
|
reportingMismatchesOnlyForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
public MapWithProtoValuesFluentAssertion<M> unpackingAnyUsingForValues(
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
|
unpackingAnyUsingForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
private MapSubject.UsingCorrespondence<M, M> usingCorrespondence(
Iterable<? extends M> expectedValues) {
return comparingValuesUsing(
config
.withExpectedMessages(expectedValues)
.<M>toCorrespondence(FieldScopeUtil.getSingleDescriptor(actual.values())));
}
|
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
|
usingCorrespondence
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceForValues() {
return subject.ignoringFieldAbsenceForValues();
}
|
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
|
ignoringFieldAbsenceForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(
int firstFieldNumber, int... rest) {
return subject.ignoringFieldAbsenceOfFieldsForValues(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
|
ignoringFieldAbsenceOfFieldsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(
Iterable<Integer> fieldNumbers) {
return subject.ignoringFieldAbsenceOfFieldsForValues(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
|
ignoringFieldAbsenceOfFieldsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(
FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) {
return subject.ignoringFieldAbsenceOfFieldDescriptorsForValues(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
|
ignoringFieldAbsenceOfFieldDescriptorsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(
Iterable<FieldDescriptor> fieldDescriptors) {
return subject.ignoringFieldAbsenceOfFieldDescriptorsForValues(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
|
ignoringFieldAbsenceOfFieldDescriptorsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderForValues() {
return subject.ignoringRepeatedFieldOrderForValues();
}
|
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
|
ignoringRepeatedFieldOrderForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(
int firstFieldNumber, int... rest) {
return subject.ignoringRepeatedFieldOrderOfFieldsForValues(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
|
ignoringRepeatedFieldOrderOfFieldsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(
Iterable<Integer> fieldNumbers) {
return subject.ignoringRepeatedFieldOrderOfFieldsForValues(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
|
ignoringRepeatedFieldOrderOfFieldsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M>
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(
FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) {
return subject.ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(
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
|
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M>
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(
Iterable<FieldDescriptor> fieldDescriptors) {
return subject.ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(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
|
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsForValues() {
return subject.ignoringExtraRepeatedFieldElementsForValues();
}
|
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
|
ignoringExtraRepeatedFieldElementsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues(
int firstFieldNumber, int... rest) {
return subject.ignoringExtraRepeatedFieldElementsOfFieldsForValues(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
|
ignoringExtraRepeatedFieldElementsOfFieldsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsOfFieldsForValues(
Iterable<Integer> fieldNumbers) {
return subject.ignoringExtraRepeatedFieldElementsOfFieldsForValues(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
|
ignoringExtraRepeatedFieldElementsOfFieldsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<M>
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(
FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) {
return subject.ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(
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
|
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues
|
java
|
google/truth
|
extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
public MapWithProtoValuesFluentAssertion<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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@Override
@CanIgnoreReturnValue
public Ordered containsExactlyEntriesIn(Map<?, ? 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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@SuppressWarnings("DoNotCall")
@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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@SuppressWarnings("DoNotCall")
@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/MapWithProtoValuesSubject.java
|
https://github.com/google/truth/blob/master/extensions/proto/src/main/java/com/google/common/truth/extensions/proto/MapWithProtoValuesSubject.java
|
Apache-2.0
|
@SuppressWarnings("unchecked")
@Override
public IterableOfProtosSubject<M> valuesForKey(@Nullable Object key) {
return check("valuesForKey(%s)", key)
.about(protos())
.that(((Multimap<Object, M>) actual).get(key));
}
|
Returns a context-aware {@link Subject} for making assertions about the values for the given
key within the {@link Multimap}.
<p>This method performs no checks on its own and cannot cause test failures. Subsequent
assertions must be chained onto this method call to test properties of the {@link Multimap}.
|
valuesForKey
|
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
|
MultimapWithProtoValuesFluentAssertion<M> usingConfig(FluentEqualityConfig newConfig) {
return new MultimapWithProtoValuesFluentAssertionImpl<>(
new MultimapWithProtoValuesSubject<>(metadata, newConfig, actual));
}
|
Returns a context-aware {@link Subject} for making assertions about the values for the given
key within the {@link Multimap}.
<p>This method performs no checks on its own and cannot cause test failures. Subsequent
assertions must be chained onto this method call to test properties of the {@link Multimap}.
|
usingConfig
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(
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 #ignoringFieldAbsenceForValues()} instead to ignore the 'has' bit for all fields.
@see #ignoringFieldAbsenceForValues() for details
|
ignoringFieldAbsenceOfFieldsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldsForValues(
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 #ignoringFieldAbsenceForValues()} instead to ignore the 'has' bit for all fields.
@see #ignoringFieldAbsenceForValues() for details
|
ignoringFieldAbsenceOfFieldsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(
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 #ignoringFieldAbsenceForValues()} instead to ignore the 'has' bit for all fields.
@see #ignoringFieldAbsenceForValues() for details
|
ignoringFieldAbsenceOfFieldDescriptorsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldAbsenceOfFieldDescriptorsForValues(
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 #ignoringFieldAbsenceForValues()} instead to ignore the 'has' bit for all fields.
@see #ignoringFieldAbsenceForValues() for details
|
ignoringFieldAbsenceOfFieldDescriptorsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderForValues() {
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 #ignoringRepeatedFieldOrderForValues()}, 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.
|
ignoringRepeatedFieldOrderForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(
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 #ignoringRepeatedFieldOrderForValues()} instead to ignore order for all fields.
@see #ignoringRepeatedFieldOrderForValues() for details.
|
ignoringRepeatedFieldOrderOfFieldsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringRepeatedFieldOrderOfFieldsForValues(
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 #ignoringRepeatedFieldOrderForValues()} instead to ignore order for all fields.
@see #ignoringRepeatedFieldOrderForValues() for details.
|
ignoringRepeatedFieldOrderOfFieldsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M>
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(
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 #ignoringRepeatedFieldOrderForValues()} instead to ignore order for all fields.
@see #ignoringRepeatedFieldOrderForValues() for details.
|
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M>
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(
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 #ignoringRepeatedFieldOrderForValues()} instead to ignore order for all fields.
@see #ignoringRepeatedFieldOrderForValues() for details.
|
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringExtraRepeatedFieldElementsForValues() {
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
#comparingExpectedFieldsOnlyForValues}.
<p>This rule is applied independently from {@link #ignoringRepeatedFieldOrderForValues}. 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.)
|
ignoringExtraRepeatedFieldElementsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M>
ignoringExtraRepeatedFieldElementsOfFieldsForValues(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 #ignoringExtraRepeatedFieldElementsForValues()} instead to ignore these for all
fields.
@see #ignoringExtraRepeatedFieldElementsForValues() for details.
|
ignoringExtraRepeatedFieldElementsOfFieldsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M>
ignoringExtraRepeatedFieldElementsOfFieldsForValues(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 #ignoringExtraRepeatedFieldElementsForValues()} instead to ignore these for all
fields.
@see #ignoringExtraRepeatedFieldElementsForValues() for details.
|
ignoringExtraRepeatedFieldElementsOfFieldsForValues
|
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
|
public MultimapWithProtoValuesFluentAssertion<M>
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(
FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) {
return usingConfig(
config.ignoringExtraRepeatedFieldElementsOfFieldDescriptors(
asList(firstFieldDescriptor, 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 #ignoringExtraRepeatedFieldElementsForValues()} instead to ignore these for all
fields.
@see #ignoringExtraRepeatedFieldElementsForValues() for details.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M>
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(
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 #ignoringExtraRepeatedFieldElementsForValues()} instead to ignore these for all
fields.
@see #ignoringExtraRepeatedFieldElementsForValues() for details.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForValues(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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldsForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> usingDoubleToleranceForFieldDescriptorsForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForValues(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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldsForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> usingFloatToleranceForFieldDescriptorsForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(
int firstFieldNumber, int... rest) {
return ignoringFieldsForValues(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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldsForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(
FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) {
return ignoringFieldDescriptorsForValues(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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldDescriptorsForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> ignoringFieldScopeForValues(
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> reportingMismatchesOnlyForValues() {
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.
|
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
|
public MultimapWithProtoValuesFluentAssertion<M> unpackingAnyUsingForValues(
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
|
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
|
private MultimapSubject.UsingCorrespondence<M, M> usingCorrespondence(
Iterable<? extends M> expectedValues) {
return comparingValuesUsing(
config
.withExpectedMessages(expectedValues)
.<M>toCorrespondence(FieldScopeUtil.getSingleDescriptor(actual.values())));
}
|
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
|
usingCorrespondence
|
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> ignoringFieldAbsenceForValues() {
return subject.ignoringFieldAbsenceForValues();
}
|
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
|
ignoringFieldAbsenceForValues
|
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> ignoringFieldAbsenceOfFieldsForValues(
int firstFieldNumber, int... rest) {
return subject.ignoringFieldAbsenceOfFieldsForValues(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
|
ignoringFieldAbsenceOfFieldsForValues
|
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> ignoringFieldAbsenceOfFieldsForValues(
Iterable<Integer> fieldNumbers) {
return subject.ignoringFieldAbsenceOfFieldsForValues(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
|
ignoringFieldAbsenceOfFieldsForValues
|
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>
ignoringFieldAbsenceOfFieldDescriptorsForValues(
FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) {
return subject.ignoringFieldAbsenceOfFieldDescriptorsForValues(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
|
ignoringFieldAbsenceOfFieldDescriptorsForValues
|
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>
ignoringFieldAbsenceOfFieldDescriptorsForValues(
Iterable<FieldDescriptor> fieldDescriptors) {
return subject.ignoringFieldAbsenceOfFieldDescriptorsForValues(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
|
ignoringFieldAbsenceOfFieldDescriptorsForValues
|
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> ignoringRepeatedFieldOrderForValues() {
return subject.ignoringRepeatedFieldOrderForValues();
}
|
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
|
ignoringRepeatedFieldOrderForValues
|
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> ignoringRepeatedFieldOrderOfFieldsForValues(
int firstFieldNumber, int... rest) {
return subject.ignoringRepeatedFieldOrderOfFieldsForValues(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
|
ignoringRepeatedFieldOrderOfFieldsForValues
|
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> ignoringRepeatedFieldOrderOfFieldsForValues(
Iterable<Integer> fieldNumbers) {
return subject.ignoringRepeatedFieldOrderOfFieldsForValues(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
|
ignoringRepeatedFieldOrderOfFieldsForValues
|
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>
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(
FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) {
return subject.ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(
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
|
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues
|
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>
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(
Iterable<FieldDescriptor> fieldDescriptors) {
return subject.ignoringRepeatedFieldOrderOfFieldDescriptorsForValues(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
|
ignoringRepeatedFieldOrderOfFieldDescriptorsForValues
|
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> ignoringExtraRepeatedFieldElementsForValues() {
return subject.ignoringExtraRepeatedFieldElementsForValues();
}
|
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
|
ignoringExtraRepeatedFieldElementsForValues
|
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>
ignoringExtraRepeatedFieldElementsOfFieldsForValues(int firstFieldNumber, int... rest) {
return subject.ignoringExtraRepeatedFieldElementsOfFieldsForValues(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
|
ignoringExtraRepeatedFieldElementsOfFieldsForValues
|
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>
ignoringExtraRepeatedFieldElementsOfFieldsForValues(Iterable<Integer> fieldNumbers) {
return subject.ignoringExtraRepeatedFieldElementsOfFieldsForValues(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
|
ignoringExtraRepeatedFieldElementsOfFieldsForValues
|
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>
ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(
FieldDescriptor firstFieldDescriptor, FieldDescriptor... rest) {
return subject.ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues(
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
|
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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.