implements
// @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.UpdateBackupVaultRequest)
com.google.cloud.netapp.v1.UpdateBackupVaultRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.netapp.v1.BackupVaultProto
.internal_static_google_cloud_netapp_v1_UpdateBackupVaultRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.netapp.v1.BackupVaultProto
.internal_static_google_cloud_netapp_v1_UpdateBackupVaultRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.netapp.v1.UpdateBackupVaultRequest.class,
com.google.cloud.netapp.v1.UpdateBackupVaultRequest.Builder.class);
}
// Construct using com.google.cloud.netapp.v1.UpdateBackupVaultRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getUpdateMaskFieldBuilder();
getBackupVaultFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
updateMask_ = null;
if (updateMaskBuilder_ != null) {
updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
backupVault_ = null;
if (backupVaultBuilder_ != null) {
backupVaultBuilder_.dispose();
backupVaultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.netapp.v1.BackupVaultProto
.internal_static_google_cloud_netapp_v1_UpdateBackupVaultRequest_descriptor;
}
@java.lang.Override
public com.google.cloud.netapp.v1.UpdateBackupVaultRequest getDefaultInstanceForType() {
return com.google.cloud.netapp.v1.UpdateBackupVaultRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.netapp.v1.UpdateBackupVaultRequest build() {
com.google.cloud.netapp.v1.UpdateBackupVaultRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.netapp.v1.UpdateBackupVaultRequest buildPartial() {
com.google.cloud.netapp.v1.UpdateBackupVaultRequest result =
new com.google.cloud.netapp.v1.UpdateBackupVaultRequest(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.netapp.v1.UpdateBackupVaultRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.backupVault_ =
backupVaultBuilder_ == null ? backupVault_ : backupVaultBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.netapp.v1.UpdateBackupVaultRequest) {
return mergeFrom((com.google.cloud.netapp.v1.UpdateBackupVaultRequest) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.netapp.v1.UpdateBackupVaultRequest other) {
if (other == com.google.cloud.netapp.v1.UpdateBackupVaultRequest.getDefaultInstance())
return this;
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (other.hasBackupVault()) {
mergeBackupVault(other.getBackupVault());
}
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(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getBackupVaultFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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.FieldMask updateMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask,
com.google.protobuf.FieldMask.Builder,
com.google.protobuf.FieldMaskOrBuilder>
updateMaskBuilder_;
/**
*
*
*
* Required. Field mask is used to specify the fields to be overwritten in the
* Backup resource to be updated.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. Field mask is used to specify the fields to be overwritten in the
* Backup resource to be updated.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The updateMask.
*/
public com.google.protobuf.FieldMask getUpdateMask() {
if (updateMaskBuilder_ == null) {
return updateMask_ == null
? com.google.protobuf.FieldMask.getDefaultInstance()
: updateMask_;
} else {
return updateMaskBuilder_.getMessage();
}
}
/**
*
*
*
* Required. Field mask is used to specify the fields to be overwritten in the
* Backup resource to be updated.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateMask_ = value;
} else {
updateMaskBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. Field mask is used to specify the fields to be overwritten in the
* Backup resource to be updated.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. Field mask is used to specify the fields to be overwritten in the
* Backup resource to be updated.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& updateMask_ != null
&& updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
getUpdateMaskBuilder().mergeFrom(value);
} else {
updateMask_ = value;
}
} else {
updateMaskBuilder_.mergeFrom(value);
}
if (updateMask_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Required. Field mask is used to specify the fields to be overwritten in the
* Backup resource to be updated.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearUpdateMask() {
bitField0_ = (bitField0_ & ~0x00000001);
updateMask_ = null;
if (updateMaskBuilder_ != null) {
updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Required. Field mask is used to specify the fields to be overwritten in the
* Backup resource to be updated.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
*
*
*
* Required. Field mask is used to specify the fields to be overwritten in the
* Backup resource to be updated.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
if (updateMaskBuilder_ != null) {
return updateMaskBuilder_.getMessageOrBuilder();
} else {
return updateMask_ == null
? com.google.protobuf.FieldMask.getDefaultInstance()
: updateMask_;
}
}
/**
*
*
*
* Required. Field mask is used to specify the fields to be overwritten in the
* Backup resource to be updated.
* The fields specified in the update_mask are relative to the resource, not
* the full request. A field will be overwritten if it is in the mask. If the
* user does not provide a mask then all fields will be overwritten.
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask,
com.google.protobuf.FieldMask.Builder,
com.google.protobuf.FieldMaskOrBuilder>
getUpdateMaskFieldBuilder() {
if (updateMaskBuilder_ == null) {
updateMaskBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask,
com.google.protobuf.FieldMask.Builder,
com.google.protobuf.FieldMaskOrBuilder>(
getUpdateMask(), getParentForChildren(), isClean());
updateMask_ = null;
}
return updateMaskBuilder_;
}
private com.google.cloud.netapp.v1.BackupVault backupVault_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.netapp.v1.BackupVault,
com.google.cloud.netapp.v1.BackupVault.Builder,
com.google.cloud.netapp.v1.BackupVaultOrBuilder>
backupVaultBuilder_;
/**
*
*
*
* Required. The backupVault being updated
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the backupVault field is set.
*/
public boolean hasBackupVault() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Required. The backupVault being updated
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The backupVault.
*/
public com.google.cloud.netapp.v1.BackupVault getBackupVault() {
if (backupVaultBuilder_ == null) {
return backupVault_ == null
? com.google.cloud.netapp.v1.BackupVault.getDefaultInstance()
: backupVault_;
} else {
return backupVaultBuilder_.getMessage();
}
}
/**
*
*
*
* Required. The backupVault being updated
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setBackupVault(com.google.cloud.netapp.v1.BackupVault value) {
if (backupVaultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
backupVault_ = value;
} else {
backupVaultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. The backupVault being updated
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setBackupVault(com.google.cloud.netapp.v1.BackupVault.Builder builderForValue) {
if (backupVaultBuilder_ == null) {
backupVault_ = builderForValue.build();
} else {
backupVaultBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. The backupVault being updated
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder mergeBackupVault(com.google.cloud.netapp.v1.BackupVault value) {
if (backupVaultBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& backupVault_ != null
&& backupVault_ != com.google.cloud.netapp.v1.BackupVault.getDefaultInstance()) {
getBackupVaultBuilder().mergeFrom(value);
} else {
backupVault_ = value;
}
} else {
backupVaultBuilder_.mergeFrom(value);
}
if (backupVault_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Required. The backupVault being updated
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearBackupVault() {
bitField0_ = (bitField0_ & ~0x00000002);
backupVault_ = null;
if (backupVaultBuilder_ != null) {
backupVaultBuilder_.dispose();
backupVaultBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Required. The backupVault being updated
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.netapp.v1.BackupVault.Builder getBackupVaultBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getBackupVaultFieldBuilder().getBuilder();
}
/**
*
*
*
* Required. The backupVault being updated
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.netapp.v1.BackupVaultOrBuilder getBackupVaultOrBuilder() {
if (backupVaultBuilder_ != null) {
return backupVaultBuilder_.getMessageOrBuilder();
} else {
return backupVault_ == null
? com.google.cloud.netapp.v1.BackupVault.getDefaultInstance()
: backupVault_;
}
}
/**
*
*
*
* Required. The backupVault being updated
*
*
*
* .google.cloud.netapp.v1.BackupVault backup_vault = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.netapp.v1.BackupVault,
com.google.cloud.netapp.v1.BackupVault.Builder,
com.google.cloud.netapp.v1.BackupVaultOrBuilder>
getBackupVaultFieldBuilder() {
if (backupVaultBuilder_ == null) {
backupVaultBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.netapp.v1.BackupVault,
com.google.cloud.netapp.v1.BackupVault.Builder,
com.google.cloud.netapp.v1.BackupVaultOrBuilder>(
getBackupVault(), getParentForChildren(), isClean());
backupVault_ = null;
}
return backupVaultBuilder_;
}
@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.netapp.v1.UpdateBackupVaultRequest)
}
// @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.UpdateBackupVaultRequest)
private static final com.google.cloud.netapp.v1.UpdateBackupVaultRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.UpdateBackupVaultRequest();
}
public static com.google.cloud.netapp.v1.UpdateBackupVaultRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateBackupVaultRequest 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.netapp.v1.UpdateBackupVaultRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}