/** * * * <pre> * Specifies the maintenance window in which maintenance may be performed. * </pre> * * <code>.google.container.v1.MaintenanceWindow window = 1;</code> */ public com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder() { return getWindow(); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (window_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (window_ != null) { output.writeMessage(1, getWindow()); } unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.container.v1.MaintenancePolicy)) { return super.equals(obj); } com.google.container.v1.MaintenancePolicy other = (com.google.container.v1.MaintenancePolicy) obj; boolean result = true; result = result && (hasWindow() == other.hasWindow()); if (hasWindow()) { result = result && getWindow().equals(other.getWindow()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasWindow()) { hash = (37 * hash) + WINDOW_FIELD_NUMBER; hash = (53 * hash) + getWindow().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.container.v1.MaintenancePolicy other) { if (other == com.google.container.v1.MaintenancePolicy.getDefaultInstance()) return this; if (other.hasWindow()) { mergeWindow(other.getWindow()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }