/** * * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { return getInstance(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (instance_ != null) { output.writeMessage(1, getInstance()); } if (startTime_ != null) { output.writeMessage(2, getStartTime()); } if (cancelTime_ != null) { output.writeMessage(3, getCancelTime()); } if (endTime_ != null) { output.writeMessage(4, getEndTime()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (instance_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance()); } if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (cancelTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); } if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInstance()) { hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasCancelTime()) { hash = (37 * hash) + CANCEL_TIME_FIELD_NUMBER; hash = (53 * hash) + getCancelTime().hashCode(); } if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.UpdateInstanceMetadata)) { return super.equals(obj); } com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other = (com.google.spanner.admin.instance.v1.UpdateInstanceMetadata) obj; boolean result = true; result = result && (hasInstance() == other.hasInstance()); if (hasInstance()) { result = result && getInstance().equals(other.getInstance()); } result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime().equals(other.getStartTime()); } result = result && (hasCancelTime() == other.hasCancelTime()); if (hasCancelTime()) { result = result && getCancelTime().equals(other.getCancelTime()); } result = result && (hasEndTime() == other.hasEndTime()); if (hasEndTime()) { result = result && getEndTime().equals(other.getEndTime()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other) { if (other == com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasCancelTime()) { mergeCancelTime(other.getCancelTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The desired end state of the update. * </pre> * * <code>.google.spanner.admin.instance.v1.Instance instance = 1;</code> */ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() { return getInstance(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (instance_ != null) { output.writeMessage(1, getInstance()); } if (startTime_ != null) { output.writeMessage(2, getStartTime()); } if (cancelTime_ != null) { output.writeMessage(3, getCancelTime()); } if (endTime_ != null) { output.writeMessage(4, getEndTime()); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (instance_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInstance()); } if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (cancelTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCancelTime()); } if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInstance()) { hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasCancelTime()) { hash = (37 * hash) + CANCEL_TIME_FIELD_NUMBER; hash = (53 * hash) + getCancelTime().hashCode(); } if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.spanner.admin.instance.v1.UpdateInstanceMetadata)) { return super.equals(obj); } com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other = (com.google.spanner.admin.instance.v1.UpdateInstanceMetadata) obj; boolean result = true; result = result && (hasInstance() == other.hasInstance()); if (hasInstance()) { result = result && getInstance().equals(other.getInstance()); } result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime().equals(other.getStartTime()); } result = result && (hasCancelTime() == other.hasCancelTime()); if (hasCancelTime()) { result = result && getCancelTime().equals(other.getCancelTime()); } result = result && (hasEndTime() == other.hasEndTime()); if (hasEndTime()) { result = result && getEndTime().equals(other.getEndTime()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.spanner.admin.instance.v1.UpdateInstanceMetadata other) { if (other == com.google.spanner.admin.instance.v1.UpdateInstanceMetadata.getDefaultInstance()) return this; if (other.hasInstance()) { mergeInstance(other.getInstance()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasCancelTime()) { mergeCancelTime(other.getCancelTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }