예제 #1
0
파일: C.java 프로젝트: 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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #5
0
 @Override
 public MethodOptions redact(MethodOptions value) {
   Builder builder = value.newBuilder();
   Internal.redactElements(builder.uninterpreted_option, UninterpretedOption.ADAPTER);
   builder.clearUnknownFields();
   return builder.build();
 }
예제 #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;
 }
예제 #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);
 }
예제 #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;
 }
예제 #9
0
 public Builder() {
   uninterpreted_option = Internal.newMutableList();
 }