@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasDeprecated()) { hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeprecated()); } if (getUninterpretedOptionCount() > 0) { hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; hash = (53 * hash) + getUninterpretedOptionList().hashCode(); } hash = hashFields(hash, getExtensionFields()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.protobuf.DescriptorProtos.ServiceOptions other) { if (other == com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance()) return this; if (other.hasDeprecated()) { setDeprecated(other.getDeprecated());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.protobuf.DescriptorProtos.ServiceOptions)) { return super.equals(obj); } com.google.protobuf.DescriptorProtos.ServiceOptions other = (com.google.protobuf.DescriptorProtos.ServiceOptions) obj; boolean result = true; result = result && (hasDeprecated() == other.hasDeprecated()); if (hasDeprecated()) { result = result && (getDeprecated() == other.getDeprecated()); } result = result && getUninterpretedOptionList() .equals(other.getUninterpretedOptionList()); result = result && unknownFields.equals(other.unknownFields); result = result && getExtensionFields().equals(other.getExtensionFields()); return result; }
com.google.protobuf.DescriptorProtos.ServiceOptions other = (com.google.protobuf.DescriptorProtos.ServiceOptions) arg1; deprecated_ = visitor.visitBoolean( hasDeprecated(), deprecated_, other.hasDeprecated(), other.deprecated_); uninterpretedOption_= visitor.visitList(uninterpretedOption_, other.uninterpretedOption_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
public Builder mergeFrom(com.google.protobuf.DescriptorProtos.ServiceOptions other) { if (other == com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance()) return this; if (other.hasDeprecated()) { setDeprecated(other.getDeprecated());
public Builder mergeFrom(com.google.protobuf.DescriptorProtos.ServiceOptions other) { if (other == com.google.protobuf.DescriptorProtos.ServiceOptions.getDefaultInstance()) return this; if (other.hasDeprecated()) { setDeprecated(other.getDeprecated());
/** * <pre> * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * </pre> * * <code>optional bool deprecated = 33 [default = false];</code> */ public boolean hasDeprecated() { return instance.hasDeprecated(); } /**