/** * * * <pre> * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; onChanged(); } else { createTimeBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * Output only. The resource name for the [KeyRing][google.cloud.kms.v1.KeyRing] in the format * `projects/*/locations/*/keyRings/*`. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * Output only. The resource name for the [KeyRing][google.cloud.kms.v1.KeyRing] in the format * `projects/*/locations/*/keyRings/*`. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } onChanged(); } else { createTimeBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; onChanged(); } else { createTimeBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { createTime_ = null; onChanged(); } else { createTime_ = null; createTimeBuilder_ = null; } return this; } /**
/** * * * <pre> * Output only. The resource name for the [KeyRing][google.cloud.kms.v1.KeyRing] in the format * `projects/*/locations/*/keyRings/*`. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * Output only. The resource name for the [KeyRing][google.cloud.kms.v1.KeyRing] in the format * `projects/*/locations/*/keyRings/*`. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * Output only. The resource name for the [KeyRing][google.cloud.kms.v1.KeyRing] in the format * `projects/*/locations/*/keyRings/*`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(com.google.cloud.kms.v1.KeyRing other) { if (other == com.google.cloud.kms.v1.KeyRing.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } onChanged(); } else { createTimeBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { createTime_ = null; onChanged(); } else { createTime_ = null; createTimeBuilder_ = null; } return this; } /**
/** * * * <pre> * Output only. The resource name for the [KeyRing][google.cloud.kms.v1.KeyRing] in the format * `projects/*/locations/*/keyRings/*`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The time at which this [KeyRing][google.cloud.kms.v1.KeyRing] was created. * </pre> * * <code>.google.protobuf.Timestamp create_time = 2;</code> */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(com.google.cloud.kms.v1.KeyRing other) { if (other == com.google.cloud.kms.v1.KeyRing.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }