Example #1
0
File: C.java Project: crazybob/wire
 @Override
 public boolean equals(Object other) {
   if (other == this) return true;
   if (!(other instanceof C)) return false;
   C o = (C) other;
   return Internal.equals(unknownFields(), o.unknownFields()) && Internal.equals(i, o.i);
 }
Example #2
0
 @Override
 public boolean equals(Object other) {
   if (other == this) return true;
   if (!(other instanceof Phone)) return false;
   Phone o = (Phone) other;
   return Internal.equals(unknownFields(), o.unknownFields()) && Internal.equals(number, o.number);
 }
Example #3
0
 @Override
 public boolean equals(Object other) {
   if (other == this) return true;
   if (!(other instanceof RedactedExtension)) return false;
   RedactedExtension o = (RedactedExtension) other;
   return Internal.equals(unknownFields(), o.unknownFields())
       && Internal.equals(d, o.d)
       && Internal.equals(e, o.e);
 }
Example #4
0
 @Override
 public boolean equals(Object other) {
   if (other == this) return true;
   if (!(other instanceof MethodOptions)) return false;
   MethodOptions o = (MethodOptions) other;
   return Internal.equals(unknownFields(), o.unknownFields())
       && Internal.equals(deprecated, o.deprecated)
       && Internal.equals(uninterpreted_option, o.uninterpreted_option);
 }
Example #5
0
 @Override
 public MethodOptions redact(MethodOptions value) {
   Builder builder = value.newBuilder();
   Internal.redactElements(builder.uninterpreted_option, UninterpretedOption.ADAPTER);
   builder.clearUnknownFields();
   return builder.build();
 }
Example #6
0
 @Override
 public Builder newBuilder() {
   Builder builder = new Builder();
   builder.deprecated = deprecated;
   builder.uninterpreted_option = Internal.copyOf("uninterpreted_option", uninterpreted_option);
   builder.addUnknownFields(unknownFields());
   return builder;
 }
Example #7
0
 public MethodOptions(
     Boolean deprecated,
     List<UninterpretedOption> uninterpreted_option,
     ByteString unknownFields) {
   super(ADAPTER, unknownFields);
   this.deprecated = deprecated;
   this.uninterpreted_option =
       Internal.immutableCopyOf("uninterpreted_option", uninterpreted_option);
 }
Example #8
0
 /** The parser stores options it doesn't recognize here. See above. */
 public Builder uninterpreted_option(List<UninterpretedOption> uninterpreted_option) {
   Internal.checkElementsNotNull(uninterpreted_option);
   this.uninterpreted_option = uninterpreted_option;
   return this;
 }
Example #9
0
 public Builder() {
   uninterpreted_option = Internal.newMutableList();
 }