/** * * * <pre> * Output only. The time at which this [CryptoKey][google.cloud.kms.v1.CryptoKey] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 5;</code> */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (primary_ != null) { output.writeMessage(2, getPrimary()); } if (purpose_ != com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.CRYPTO_KEY_PURPOSE_UNSPECIFIED .getNumber()) { output.writeEnum(3, purpose_); } if (createTime_ != null) { output.writeMessage(5, getCreateTime()); } if (nextRotationTime_ != null) { output.writeMessage(7, getNextRotationTime()); } if (rotationScheduleCase_ == 8) { output.writeMessage(8, (com.google.protobuf.Duration) rotationSchedule_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); if (versionTemplate_ != null) { output.writeMessage(11, getVersionTemplate()); } unknownFields.writeTo(output); }
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime());
if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode();
result = result && (hasCreateTime() == other.hasCreateTime()); if (hasCreateTime()) { result = result && getCreateTime().equals(other.getCreateTime());
mergeCreateTime(other.getCreateTime());
/** * * * <pre> * Output only. The time at which this [CryptoKey][google.cloud.kms.v1.CryptoKey] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 5;</code> */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (primary_ != null) { output.writeMessage(2, getPrimary()); } if (purpose_ != com.google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.CRYPTO_KEY_PURPOSE_UNSPECIFIED .getNumber()) { output.writeEnum(3, purpose_); } if (createTime_ != null) { output.writeMessage(5, getCreateTime()); } if (nextRotationTime_ != null) { output.writeMessage(7, getNextRotationTime()); } if (rotationScheduleCase_ == 8) { output.writeMessage(8, (com.google.protobuf.Duration) rotationSchedule_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); if (versionTemplate_ != null) { output.writeMessage(11, getVersionTemplate()); } unknownFields.writeTo(output); }
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime());
if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode();
result = result && (hasCreateTime() == other.hasCreateTime()); if (hasCreateTime()) { result = result && getCreateTime().equals(other.getCreateTime());
mergeCreateTime(other.getCreateTime());