implements
// @@protoc_insertion_point(builder_implements:google.cloud.parallelstore.v1beta.TransferOperationMetadata)
com.google.cloud.parallelstore.v1beta.TransferOperationMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.parallelstore.v1beta.ParallelstoreProto
.internal_static_google_cloud_parallelstore_v1beta_TransferOperationMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.parallelstore.v1beta.ParallelstoreProto
.internal_static_google_cloud_parallelstore_v1beta_TransferOperationMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.parallelstore.v1beta.TransferOperationMetadata.class,
com.google.cloud.parallelstore.v1beta.TransferOperationMetadata.Builder.class);
}
// Construct using com.google.cloud.parallelstore.v1beta.TransferOperationMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCreateTimeFieldBuilder();
getEndTimeFieldBuilder();
getCountersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
counters_ = null;
if (countersBuilder_ != null) {
countersBuilder_.dispose();
countersBuilder_ = null;
}
source_ = "";
destination_ = "";
transferType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.parallelstore.v1beta.ParallelstoreProto
.internal_static_google_cloud_parallelstore_v1beta_TransferOperationMetadata_descriptor;
}
@java.lang.Override
public com.google.cloud.parallelstore.v1beta.TransferOperationMetadata
getDefaultInstanceForType() {
return com.google.cloud.parallelstore.v1beta.TransferOperationMetadata.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.parallelstore.v1beta.TransferOperationMetadata build() {
com.google.cloud.parallelstore.v1beta.TransferOperationMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.parallelstore.v1beta.TransferOperationMetadata buildPartial() {
com.google.cloud.parallelstore.v1beta.TransferOperationMetadata result =
new com.google.cloud.parallelstore.v1beta.TransferOperationMetadata(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.parallelstore.v1beta.TransferOperationMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.counters_ = countersBuilder_ == null ? counters_ : countersBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.source_ = source_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.destination_ = destination_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.transferType_ = transferType_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.parallelstore.v1beta.TransferOperationMetadata) {
return mergeFrom((com.google.cloud.parallelstore.v1beta.TransferOperationMetadata) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.parallelstore.v1beta.TransferOperationMetadata other) {
if (other
== com.google.cloud.parallelstore.v1beta.TransferOperationMetadata.getDefaultInstance())
return this;
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasEndTime()) {
mergeEndTime(other.getEndTime());
}
if (other.hasCounters()) {
mergeCounters(other.getCounters());
}
if (!other.getSource().isEmpty()) {
source_ = other.source_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getDestination().isEmpty()) {
destination_ = other.destination_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.transferType_ != 0) {
setTransferTypeValue(other.getTransferTypeValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getCountersFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
source_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
destination_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48:
{
transferType_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. CCFE supplied fields BEGIN
* The time the operation was created.
*
*
*
* .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. CCFE supplied fields BEGIN
* The time the operation was created.
*
*
*
* .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. CCFE supplied fields BEGIN
* The time the operation was created.
*
*
*
* .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. CCFE supplied fields BEGIN
* The time the operation was created.
*
*
*
* .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. CCFE supplied fields BEGIN
* The time the operation was created.
*
*
*
* .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. CCFE supplied fields BEGIN
* The time the operation was created.
*
*
*
* .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000001);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. CCFE supplied fields BEGIN
* The time the operation was created.
*
*
*
* .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. CCFE supplied fields BEGIN
* The time the operation was created.
*
*
*
* .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Output only. CCFE supplied fields BEGIN
* The time the operation was created.
*
*
*
* .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp endTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
endTimeBuilder_;
/**
*
*
*
* Output only. The time the operation finished running.
*
*
* .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the endTime field is set.
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. The time the operation finished running.
*
*
* .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The endTime.
*/
public com.google.protobuf.Timestamp getEndTime() {
if (endTimeBuilder_ == null) {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
} else {
return endTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The time the operation finished running.
*
*
* .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endTime_ = value;
} else {
endTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time the operation finished running.
*
*
* .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (endTimeBuilder_ == null) {
endTime_ = builderForValue.build();
} else {
endTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time the operation finished running.
*
*
* .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& endTime_ != null
&& endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getEndTimeBuilder().mergeFrom(value);
} else {
endTime_ = value;
}
} else {
endTimeBuilder_.mergeFrom(value);
}
if (endTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The time the operation finished running.
*
*
* .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearEndTime() {
bitField0_ = (bitField0_ & ~0x00000002);
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The time the operation finished running.
*
*
* .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getEndTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The time the operation finished running.
*
*
* .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
if (endTimeBuilder_ != null) {
return endTimeBuilder_.getMessageOrBuilder();
} else {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
}
/**
*
*
*
* Output only. The time the operation finished running.
*
*
* .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder() {
if (endTimeBuilder_ == null) {
endTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getEndTime(), getParentForChildren(), isClean());
endTime_ = null;
}
return endTimeBuilder_;
}
private com.google.cloud.parallelstore.v1beta.TransferCounters counters_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.parallelstore.v1beta.TransferCounters,
com.google.cloud.parallelstore.v1beta.TransferCounters.Builder,
com.google.cloud.parallelstore.v1beta.TransferCountersOrBuilder>
countersBuilder_;
/**
*
*
*
* Information about the progress of the transfer operation.
*
*
* .google.cloud.parallelstore.v1beta.TransferCounters counters = 3;
*
* @return Whether the counters field is set.
*/
public boolean hasCounters() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Information about the progress of the transfer operation.
*
*
* .google.cloud.parallelstore.v1beta.TransferCounters counters = 3;
*
* @return The counters.
*/
public com.google.cloud.parallelstore.v1beta.TransferCounters getCounters() {
if (countersBuilder_ == null) {
return counters_ == null
? com.google.cloud.parallelstore.v1beta.TransferCounters.getDefaultInstance()
: counters_;
} else {
return countersBuilder_.getMessage();
}
}
/**
*
*
*
* Information about the progress of the transfer operation.
*
*
* .google.cloud.parallelstore.v1beta.TransferCounters counters = 3;
*/
public Builder setCounters(com.google.cloud.parallelstore.v1beta.TransferCounters value) {
if (countersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
counters_ = value;
} else {
countersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Information about the progress of the transfer operation.
*
*
* .google.cloud.parallelstore.v1beta.TransferCounters counters = 3;
*/
public Builder setCounters(
com.google.cloud.parallelstore.v1beta.TransferCounters.Builder builderForValue) {
if (countersBuilder_ == null) {
counters_ = builderForValue.build();
} else {
countersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Information about the progress of the transfer operation.
*
*
* .google.cloud.parallelstore.v1beta.TransferCounters counters = 3;
*/
public Builder mergeCounters(com.google.cloud.parallelstore.v1beta.TransferCounters value) {
if (countersBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& counters_ != null
&& counters_
!= com.google.cloud.parallelstore.v1beta.TransferCounters.getDefaultInstance()) {
getCountersBuilder().mergeFrom(value);
} else {
counters_ = value;
}
} else {
countersBuilder_.mergeFrom(value);
}
if (counters_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Information about the progress of the transfer operation.
*
*
* .google.cloud.parallelstore.v1beta.TransferCounters counters = 3;
*/
public Builder clearCounters() {
bitField0_ = (bitField0_ & ~0x00000004);
counters_ = null;
if (countersBuilder_ != null) {
countersBuilder_.dispose();
countersBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Information about the progress of the transfer operation.
*
*
* .google.cloud.parallelstore.v1beta.TransferCounters counters = 3;
*/
public com.google.cloud.parallelstore.v1beta.TransferCounters.Builder getCountersBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCountersFieldBuilder().getBuilder();
}
/**
*
*
*
* Information about the progress of the transfer operation.
*
*
* .google.cloud.parallelstore.v1beta.TransferCounters counters = 3;
*/
public com.google.cloud.parallelstore.v1beta.TransferCountersOrBuilder getCountersOrBuilder() {
if (countersBuilder_ != null) {
return countersBuilder_.getMessageOrBuilder();
} else {
return counters_ == null
? com.google.cloud.parallelstore.v1beta.TransferCounters.getDefaultInstance()
: counters_;
}
}
/**
*
*
*
* Information about the progress of the transfer operation.
*
*
* .google.cloud.parallelstore.v1beta.TransferCounters counters = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.parallelstore.v1beta.TransferCounters,
com.google.cloud.parallelstore.v1beta.TransferCounters.Builder,
com.google.cloud.parallelstore.v1beta.TransferCountersOrBuilder>
getCountersFieldBuilder() {
if (countersBuilder_ == null) {
countersBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.parallelstore.v1beta.TransferCounters,
com.google.cloud.parallelstore.v1beta.TransferCounters.Builder,
com.google.cloud.parallelstore.v1beta.TransferCountersOrBuilder>(
getCounters(), getParentForChildren(), isClean());
counters_ = null;
}
return countersBuilder_;
}
private java.lang.Object source_ = "";
/**
*
*
*
* Required. The origin of the data transfer.
*
*
* string source = 4 [(.google.api.field_behavior) = REQUIRED];
*
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
source_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. The origin of the data transfer.
*
*
* string source = 4 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for source.
*/
public com.google.protobuf.ByteString getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. The origin of the data transfer.
*
*
* string source = 4 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Required. The origin of the data transfer.
*
*
* string source = 4 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Required. The origin of the data transfer.
*
*
* string source = 4 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
source_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object destination_ = "";
/**
*
*
*
* Required. The destination of the data transfer.
*
*
* string destination = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The destination.
*/
public java.lang.String getDestination() {
java.lang.Object ref = destination_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destination_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. The destination of the data transfer.
*
*
* string destination = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return The bytes for destination.
*/
public com.google.protobuf.ByteString getDestinationBytes() {
java.lang.Object ref = destination_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
destination_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. The destination of the data transfer.
*
*
* string destination = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The destination to set.
* @return This builder for chaining.
*/
public Builder setDestination(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
destination_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Required. The destination of the data transfer.
*
*
* string destination = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
public Builder clearDestination() {
destination_ = getDefaultInstance().getDestination();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Required. The destination of the data transfer.
*
*
* string destination = 5 [(.google.api.field_behavior) = REQUIRED];
*
* @param value The bytes for destination to set.
* @return This builder for chaining.
*/
public Builder setDestinationBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
destination_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private int transferType_ = 0;
/**
*
*
*
* The type of transfer occurring.
*
*
* .google.cloud.parallelstore.v1beta.TransferType transfer_type = 6;
*
* @return The enum numeric value on the wire for transferType.
*/
@java.lang.Override
public int getTransferTypeValue() {
return transferType_;
}
/**
*
*
*
* The type of transfer occurring.
*
*
* .google.cloud.parallelstore.v1beta.TransferType transfer_type = 6;
*
* @param value The enum numeric value on the wire for transferType to set.
* @return This builder for chaining.
*/
public Builder setTransferTypeValue(int value) {
transferType_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The type of transfer occurring.
*
*
* .google.cloud.parallelstore.v1beta.TransferType transfer_type = 6;
*
* @return The transferType.
*/
@java.lang.Override
public com.google.cloud.parallelstore.v1beta.TransferType getTransferType() {
com.google.cloud.parallelstore.v1beta.TransferType result =
com.google.cloud.parallelstore.v1beta.TransferType.forNumber(transferType_);
return result == null
? com.google.cloud.parallelstore.v1beta.TransferType.UNRECOGNIZED
: result;
}
/**
*
*
*
* The type of transfer occurring.
*
*
* .google.cloud.parallelstore.v1beta.TransferType transfer_type = 6;
*
* @param value The transferType to set.
* @return This builder for chaining.
*/
public Builder setTransferType(com.google.cloud.parallelstore.v1beta.TransferType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
transferType_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The type of transfer occurring.
*
*
* .google.cloud.parallelstore.v1beta.TransferType transfer_type = 6;
*
* @return This builder for chaining.
*/
public Builder clearTransferType() {
bitField0_ = (bitField0_ & ~0x00000020);
transferType_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.parallelstore.v1beta.TransferOperationMetadata)
}
// @@protoc_insertion_point(class_scope:google.cloud.parallelstore.v1beta.TransferOperationMetadata)
private static final com.google.cloud.parallelstore.v1beta.TransferOperationMetadata
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.parallelstore.v1beta.TransferOperationMetadata();
}
public static com.google.cloud.parallelstore.v1beta.TransferOperationMetadata
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferOperationMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.parallelstore.v1beta.TransferOperationMetadata
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}