/** * * * <pre> * Output only. The attestation data provided by the HSM when the key * operation was performed. * </pre> * * <code>bytes content = 5;</code> */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /**
/** * * * <pre> * Output only. The format of the attestation data. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4;</code> */ public Builder setFormat( com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat value) { if (value == null) { throw new NullPointerException(); } format_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The attestation data provided by the HSM when the key * operation was performed. * </pre> * * <code>bytes content = 5;</code> */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /**
/** * * * <pre> * Output only. The format of the attestation data. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4;</code> */ public Builder setFormat( com.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat value) { if (value == null) { throw new NullPointerException(); } format_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The attestation data provided by the HSM when the key * operation was performed. * </pre> * * <code>bytes content = 5;</code> */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; }
/** * * * <pre> * Output only. The format of the attestation data. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4;</code> */ public Builder clearFormat() { format_ = 0; onChanged(); return this; }
/** * * * <pre> * Output only. The format of the attestation data. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4;</code> */ public Builder setFormatValue(int value) { format_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.kms.v1.KeyOperationAttestation other) { if (other == com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance()) return this; if (other.format_ != 0) { setFormatValue(other.getFormatValue()); } if (other.getContent() != com.google.protobuf.ByteString.EMPTY) { setContent(other.getContent()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Output only. The attestation data provided by the HSM when the key * operation was performed. * </pre> * * <code>bytes content = 5;</code> */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; }
/** * * * <pre> * Output only. The format of the attestation data. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4;</code> */ public Builder setFormatValue(int value) { format_ = value; onChanged(); return this; } /**
/** * * * <pre> * Output only. The format of the attestation data. * </pre> * * <code>.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4;</code> */ public Builder clearFormat() { format_ = 0; onChanged(); return this; }
public Builder mergeFrom(com.google.cloud.kms.v1.KeyOperationAttestation other) { if (other == com.google.cloud.kms.v1.KeyOperationAttestation.getDefaultInstance()) return this; if (other.format_ != 0) { setFormatValue(other.getFormatValue()); } if (other.getContent() != com.google.protobuf.ByteString.EMPTY) { setContent(other.getContent()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }