implements
// @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.UpdateBackupPolicyRequest)
com.google.cloud.netapp.v1.UpdateBackupPolicyRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.netapp.v1.BackupPolicyProto
.internal_static_google_cloud_netapp_v1_UpdateBackupPolicyRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.netapp.v1.BackupPolicyProto
.internal_static_google_cloud_netapp_v1_UpdateBackupPolicyRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.netapp.v1.UpdateBackupPolicyRequest.class,
com.google.cloud.netapp.v1.UpdateBackupPolicyRequest.Builder.class);
}
// Construct using com.google.cloud.netapp.v1.UpdateBackupPolicyRequest.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();
getBackupPolicyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
updateMask_ = null;
if (updateMaskBuilder_ != null) {
updateMaskBuilder_.dispose();
updateMaskBuilder_ = null;
}
backupPolicy_ = null;
if (backupPolicyBuilder_ != null) {
backupPolicyBuilder_.dispose();
backupPolicyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.netapp.v1.BackupPolicyProto
.internal_static_google_cloud_netapp_v1_UpdateBackupPolicyRequest_descriptor;
}
@java.lang.Override
public com.google.cloud.netapp.v1.UpdateBackupPolicyRequest getDefaultInstanceForType() {
return com.google.cloud.netapp.v1.UpdateBackupPolicyRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.netapp.v1.UpdateBackupPolicyRequest build() {
com.google.cloud.netapp.v1.UpdateBackupPolicyRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.netapp.v1.UpdateBackupPolicyRequest buildPartial() {
com.google.cloud.netapp.v1.UpdateBackupPolicyRequest result =
new com.google.cloud.netapp.v1.UpdateBackupPolicyRequest(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.netapp.v1.UpdateBackupPolicyRequest 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.backupPolicy_ =
backupPolicyBuilder_ == null ? backupPolicy_ : backupPolicyBuilder_.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.UpdateBackupPolicyRequest) {
return mergeFrom((com.google.cloud.netapp.v1.UpdateBackupPolicyRequest) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.netapp.v1.UpdateBackupPolicyRequest other) {
if (other == com.google.cloud.netapp.v1.UpdateBackupPolicyRequest.getDefaultInstance())
return this;
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (other.hasBackupPolicy()) {
mergeBackupPolicy(other.getBackupPolicy());
}
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(getBackupPolicyFieldBuilder().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 Policy resource by the update.
* 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 Policy resource by the update.
* 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 Policy resource by the update.
* 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 Policy resource by the update.
* 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 Policy resource by the update.
* 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 Policy resource by the update.
* 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 Policy resource by the update.
* 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 Policy resource by the update.
* 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 Policy resource by the update.
* 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.BackupPolicy backupPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.netapp.v1.BackupPolicy,
com.google.cloud.netapp.v1.BackupPolicy.Builder,
com.google.cloud.netapp.v1.BackupPolicyOrBuilder>
backupPolicyBuilder_;
/**
*
*
*
* Required. The backup policy being updated
*
*
*
* .google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the backupPolicy field is set.
*/
public boolean hasBackupPolicy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Required. The backup policy being updated
*
*
*
* .google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The backupPolicy.
*/
public com.google.cloud.netapp.v1.BackupPolicy getBackupPolicy() {
if (backupPolicyBuilder_ == null) {
return backupPolicy_ == null
? com.google.cloud.netapp.v1.BackupPolicy.getDefaultInstance()
: backupPolicy_;
} else {
return backupPolicyBuilder_.getMessage();
}
}
/**
*
*
*
* Required. The backup policy being updated
*
*
*
* .google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setBackupPolicy(com.google.cloud.netapp.v1.BackupPolicy value) {
if (backupPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
backupPolicy_ = value;
} else {
backupPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. The backup policy being updated
*
*
*
* .google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setBackupPolicy(
com.google.cloud.netapp.v1.BackupPolicy.Builder builderForValue) {
if (backupPolicyBuilder_ == null) {
backupPolicy_ = builderForValue.build();
} else {
backupPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. The backup policy being updated
*
*
*
* .google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder mergeBackupPolicy(com.google.cloud.netapp.v1.BackupPolicy value) {
if (backupPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& backupPolicy_ != null
&& backupPolicy_ != com.google.cloud.netapp.v1.BackupPolicy.getDefaultInstance()) {
getBackupPolicyBuilder().mergeFrom(value);
} else {
backupPolicy_ = value;
}
} else {
backupPolicyBuilder_.mergeFrom(value);
}
if (backupPolicy_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Required. The backup policy being updated
*
*
*
* .google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearBackupPolicy() {
bitField0_ = (bitField0_ & ~0x00000002);
backupPolicy_ = null;
if (backupPolicyBuilder_ != null) {
backupPolicyBuilder_.dispose();
backupPolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Required. The backup policy being updated
*
*
*
* .google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.netapp.v1.BackupPolicy.Builder getBackupPolicyBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getBackupPolicyFieldBuilder().getBuilder();
}
/**
*
*
*
* Required. The backup policy being updated
*
*
*
* .google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.netapp.v1.BackupPolicyOrBuilder getBackupPolicyOrBuilder() {
if (backupPolicyBuilder_ != null) {
return backupPolicyBuilder_.getMessageOrBuilder();
} else {
return backupPolicy_ == null
? com.google.cloud.netapp.v1.BackupPolicy.getDefaultInstance()
: backupPolicy_;
}
}
/**
*
*
*
* Required. The backup policy being updated
*
*
*
* .google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.netapp.v1.BackupPolicy,
com.google.cloud.netapp.v1.BackupPolicy.Builder,
com.google.cloud.netapp.v1.BackupPolicyOrBuilder>
getBackupPolicyFieldBuilder() {
if (backupPolicyBuilder_ == null) {
backupPolicyBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.netapp.v1.BackupPolicy,
com.google.cloud.netapp.v1.BackupPolicy.Builder,
com.google.cloud.netapp.v1.BackupPolicyOrBuilder>(
getBackupPolicy(), getParentForChildren(), isClean());
backupPolicy_ = null;
}
return backupPolicyBuilder_;
}
@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.UpdateBackupPolicyRequest)
}
// @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.UpdateBackupPolicyRequest)
private static final com.google.cloud.netapp.v1.UpdateBackupPolicyRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.UpdateBackupPolicyRequest();
}
public static com.google.cloud.netapp.v1.UpdateBackupPolicyRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateBackupPolicyRequest 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.UpdateBackupPolicyRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}