Пример #1
0
 @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();
 }