All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.gkebackup.v1.Restore Maven / Gradle / Ivy

There is a newer version: 0.48.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/gkebackup/v1/restore.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.gkebackup.v1;

/**
 *
 *
 * 
 * Represents both a request to Restore some portion of a Backup into
 * a target GKE cluster and a record of the restore operation itself.
 * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Restore} */ public final class Restore extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Restore) RestoreOrBuilder { private static final long serialVersionUID = 0L; // Use Restore.newBuilder() to construct. private Restore(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Restore() { name_ = ""; uid_ = ""; description_ = ""; backup_ = ""; cluster_ = ""; state_ = 0; stateReason_ = ""; etag_ = ""; volumeDataRestorePolicyOverrides_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Restore(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 9: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.gkebackup.v1.Restore.class, com.google.cloud.gkebackup.v1.Restore.Builder.class); } /** * * *
   * Possible values for state of the Restore.
   * 
* * Protobuf enum {@code google.cloud.gkebackup.v1.Restore.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * The Restore resource is in the process of being created.
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * The Restore resource has been created and the associated RestoreJob
     * Kubernetes resource has been injected into target cluster.
     * 
* * CREATING = 1; */ CREATING(1), /** * * *
     * The gkebackup agent in the cluster has begun executing the restore
     * operation.
     * 
* * IN_PROGRESS = 2; */ IN_PROGRESS(2), /** * * *
     * The restore operation has completed successfully. Restored workloads may
     * not yet be operational.
     * 
* * SUCCEEDED = 3; */ SUCCEEDED(3), /** * * *
     * The restore operation has failed.
     * 
* * FAILED = 4; */ FAILED(4), /** * * *
     * This Restore resource is in the process of being deleted.
     * 
* * DELETING = 5; */ DELETING(5), UNRECOGNIZED(-1), ; /** * * *
     * The Restore resource is in the process of being created.
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * The Restore resource has been created and the associated RestoreJob
     * Kubernetes resource has been injected into target cluster.
     * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** * * *
     * The gkebackup agent in the cluster has begun executing the restore
     * operation.
     * 
* * IN_PROGRESS = 2; */ public static final int IN_PROGRESS_VALUE = 2; /** * * *
     * The restore operation has completed successfully. Restored workloads may
     * not yet be operational.
     * 
* * SUCCEEDED = 3; */ public static final int SUCCEEDED_VALUE = 3; /** * * *
     * The restore operation has failed.
     * 
* * FAILED = 4; */ public static final int FAILED_VALUE = 4; /** * * *
     * This Restore resource is in the process of being deleted.
     * 
* * DELETING = 5; */ public static final int DELETING_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return CREATING; case 2: return IN_PROGRESS; case 3: return SUCCEEDED; case 4: return FAILED; case 5: return DELETING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkebackup.v1.Restore.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.gkebackup.v1.Restore.State) } public interface FilterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkebackup.v1.Restore.Filter) com.google.protobuf.MessageOrBuilder { /** * * *
     * Optional. Selects resources for restoration. If specified, only resources
     * which match `inclusion_filters` will be selected for restoration. A
     * resource will be selected if it matches any `ResourceSelector` of the
     * `inclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List getInclusionFiltersList(); /** * * *
     * Optional. Selects resources for restoration. If specified, only resources
     * which match `inclusion_filters` will be selected for restoration. A
     * resource will be selected if it matches any `ResourceSelector` of the
     * `inclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.gkebackup.v1.ResourceSelector getInclusionFilters(int index); /** * * *
     * Optional. Selects resources for restoration. If specified, only resources
     * which match `inclusion_filters` will be selected for restoration. A
     * resource will be selected if it matches any `ResourceSelector` of the
     * `inclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ int getInclusionFiltersCount(); /** * * *
     * Optional. Selects resources for restoration. If specified, only resources
     * which match `inclusion_filters` will be selected for restoration. A
     * resource will be selected if it matches any `ResourceSelector` of the
     * `inclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List getInclusionFiltersOrBuilderList(); /** * * *
     * Optional. Selects resources for restoration. If specified, only resources
     * which match `inclusion_filters` will be selected for restoration. A
     * resource will be selected if it matches any `ResourceSelector` of the
     * `inclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getInclusionFiltersOrBuilder(int index); /** * * *
     * Optional. Excludes resources from restoration. If specified,
     * a resource will not be restored if it matches
     * any `ResourceSelector` of the `exclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List getExclusionFiltersList(); /** * * *
     * Optional. Excludes resources from restoration. If specified,
     * a resource will not be restored if it matches
     * any `ResourceSelector` of the `exclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.gkebackup.v1.ResourceSelector getExclusionFilters(int index); /** * * *
     * Optional. Excludes resources from restoration. If specified,
     * a resource will not be restored if it matches
     * any `ResourceSelector` of the `exclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ int getExclusionFiltersCount(); /** * * *
     * Optional. Excludes resources from restoration. If specified,
     * a resource will not be restored if it matches
     * any `ResourceSelector` of the `exclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List getExclusionFiltersOrBuilderList(); /** * * *
     * Optional. Excludes resources from restoration. If specified,
     * a resource will not be restored if it matches
     * any `ResourceSelector` of the `exclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getExclusionFiltersOrBuilder(int index); } /** * * *
   * Defines the filter for `Restore`. This filter can be used to further
   * refine the resource selection of the `Restore` beyond the coarse-grained
   * scope defined in the `RestorePlan`. `exclusion_filters` take precedence
   * over `inclusion_filters`. If a resource matches both `inclusion_filters`
   * and `exclusion_filters`, it will not be restored.
   * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Restore.Filter} */ public static final class Filter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkebackup.v1.Restore.Filter) FilterOrBuilder { private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Filter() { inclusionFilters_ = java.util.Collections.emptyList(); exclusionFilters_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.gkebackup.v1.Restore.Filter.class, com.google.cloud.gkebackup.v1.Restore.Filter.Builder.class); } public static final int INCLUSION_FILTERS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List inclusionFilters_; /** * * *
     * Optional. Selects resources for restoration. If specified, only resources
     * which match `inclusion_filters` will be selected for restoration. A
     * resource will be selected if it matches any `ResourceSelector` of the
     * `inclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getInclusionFiltersList() { return inclusionFilters_; } /** * * *
     * Optional. Selects resources for restoration. If specified, only resources
     * which match `inclusion_filters` will be selected for restoration. A
     * resource will be selected if it matches any `ResourceSelector` of the
     * `inclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getInclusionFiltersOrBuilderList() { return inclusionFilters_; } /** * * *
     * Optional. Selects resources for restoration. If specified, only resources
     * which match `inclusion_filters` will be selected for restoration. A
     * resource will be selected if it matches any `ResourceSelector` of the
     * `inclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public int getInclusionFiltersCount() { return inclusionFilters_.size(); } /** * * *
     * Optional. Selects resources for restoration. If specified, only resources
     * which match `inclusion_filters` will be selected for restoration. A
     * resource will be selected if it matches any `ResourceSelector` of the
     * `inclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.gkebackup.v1.ResourceSelector getInclusionFilters(int index) { return inclusionFilters_.get(index); } /** * * *
     * Optional. Selects resources for restoration. If specified, only resources
     * which match `inclusion_filters` will be selected for restoration. A
     * resource will be selected if it matches any `ResourceSelector` of the
     * `inclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getInclusionFiltersOrBuilder( int index) { return inclusionFilters_.get(index); } public static final int EXCLUSION_FILTERS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List exclusionFilters_; /** * * *
     * Optional. Excludes resources from restoration. If specified,
     * a resource will not be restored if it matches
     * any `ResourceSelector` of the `exclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getExclusionFiltersList() { return exclusionFilters_; } /** * * *
     * Optional. Excludes resources from restoration. If specified,
     * a resource will not be restored if it matches
     * any `ResourceSelector` of the `exclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getExclusionFiltersOrBuilderList() { return exclusionFilters_; } /** * * *
     * Optional. Excludes resources from restoration. If specified,
     * a resource will not be restored if it matches
     * any `ResourceSelector` of the `exclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public int getExclusionFiltersCount() { return exclusionFilters_.size(); } /** * * *
     * Optional. Excludes resources from restoration. If specified,
     * a resource will not be restored if it matches
     * any `ResourceSelector` of the `exclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.gkebackup.v1.ResourceSelector getExclusionFilters(int index) { return exclusionFilters_.get(index); } /** * * *
     * Optional. Excludes resources from restoration. If specified,
     * a resource will not be restored if it matches
     * any `ResourceSelector` of the `exclusion_filters`.
     * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getExclusionFiltersOrBuilder( int index) { return exclusionFilters_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < inclusionFilters_.size(); i++) { output.writeMessage(1, inclusionFilters_.get(i)); } for (int i = 0; i < exclusionFilters_.size(); i++) { output.writeMessage(2, exclusionFilters_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < inclusionFilters_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, inclusionFilters_.get(i)); } for (int i = 0; i < exclusionFilters_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, exclusionFilters_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.Restore.Filter)) { return super.equals(obj); } com.google.cloud.gkebackup.v1.Restore.Filter other = (com.google.cloud.gkebackup.v1.Restore.Filter) obj; if (!getInclusionFiltersList().equals(other.getInclusionFiltersList())) return false; if (!getExclusionFiltersList().equals(other.getExclusionFiltersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getInclusionFiltersCount() > 0) { hash = (37 * hash) + INCLUSION_FILTERS_FIELD_NUMBER; hash = (53 * hash) + getInclusionFiltersList().hashCode(); } if (getExclusionFiltersCount() > 0) { hash = (37 * hash) + EXCLUSION_FILTERS_FIELD_NUMBER; hash = (53 * hash) + getExclusionFiltersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.gkebackup.v1.Restore.Filter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.gkebackup.v1.Restore.Filter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Defines the filter for `Restore`. This filter can be used to further
     * refine the resource selection of the `Restore` beyond the coarse-grained
     * scope defined in the `RestorePlan`. `exclusion_filters` take precedence
     * over `inclusion_filters`. If a resource matches both `inclusion_filters`
     * and `exclusion_filters`, it will not be restored.
     * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Restore.Filter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Restore.Filter) com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.gkebackup.v1.Restore.Filter.class, com.google.cloud.gkebackup.v1.Restore.Filter.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.Restore.Filter.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (inclusionFiltersBuilder_ == null) { inclusionFilters_ = java.util.Collections.emptyList(); } else { inclusionFilters_ = null; inclusionFiltersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (exclusionFiltersBuilder_ == null) { exclusionFilters_ = java.util.Collections.emptyList(); } else { exclusionFilters_ = null; exclusionFiltersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_Filter_descriptor; } @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.Filter getDefaultInstanceForType() { return com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.Filter build() { com.google.cloud.gkebackup.v1.Restore.Filter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.Filter buildPartial() { com.google.cloud.gkebackup.v1.Restore.Filter result = new com.google.cloud.gkebackup.v1.Restore.Filter(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.gkebackup.v1.Restore.Filter result) { if (inclusionFiltersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { inclusionFilters_ = java.util.Collections.unmodifiableList(inclusionFilters_); bitField0_ = (bitField0_ & ~0x00000001); } result.inclusionFilters_ = inclusionFilters_; } else { result.inclusionFilters_ = inclusionFiltersBuilder_.build(); } if (exclusionFiltersBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { exclusionFilters_ = java.util.Collections.unmodifiableList(exclusionFilters_); bitField0_ = (bitField0_ & ~0x00000002); } result.exclusionFilters_ = exclusionFilters_; } else { result.exclusionFilters_ = exclusionFiltersBuilder_.build(); } } private void buildPartial0(com.google.cloud.gkebackup.v1.Restore.Filter result) { int from_bitField0_ = 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.gkebackup.v1.Restore.Filter) { return mergeFrom((com.google.cloud.gkebackup.v1.Restore.Filter) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.gkebackup.v1.Restore.Filter other) { if (other == com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance()) return this; if (inclusionFiltersBuilder_ == null) { if (!other.inclusionFilters_.isEmpty()) { if (inclusionFilters_.isEmpty()) { inclusionFilters_ = other.inclusionFilters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInclusionFiltersIsMutable(); inclusionFilters_.addAll(other.inclusionFilters_); } onChanged(); } } else { if (!other.inclusionFilters_.isEmpty()) { if (inclusionFiltersBuilder_.isEmpty()) { inclusionFiltersBuilder_.dispose(); inclusionFiltersBuilder_ = null; inclusionFilters_ = other.inclusionFilters_; bitField0_ = (bitField0_ & ~0x00000001); inclusionFiltersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInclusionFiltersFieldBuilder() : null; } else { inclusionFiltersBuilder_.addAllMessages(other.inclusionFilters_); } } } if (exclusionFiltersBuilder_ == null) { if (!other.exclusionFilters_.isEmpty()) { if (exclusionFilters_.isEmpty()) { exclusionFilters_ = other.exclusionFilters_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureExclusionFiltersIsMutable(); exclusionFilters_.addAll(other.exclusionFilters_); } onChanged(); } } else { if (!other.exclusionFilters_.isEmpty()) { if (exclusionFiltersBuilder_.isEmpty()) { exclusionFiltersBuilder_.dispose(); exclusionFiltersBuilder_ = null; exclusionFilters_ = other.exclusionFilters_; bitField0_ = (bitField0_ & ~0x00000002); exclusionFiltersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExclusionFiltersFieldBuilder() : null; } else { exclusionFiltersBuilder_.addAllMessages(other.exclusionFilters_); } } } 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: { com.google.cloud.gkebackup.v1.ResourceSelector m = input.readMessage( com.google.cloud.gkebackup.v1.ResourceSelector.parser(), extensionRegistry); if (inclusionFiltersBuilder_ == null) { ensureInclusionFiltersIsMutable(); inclusionFilters_.add(m); } else { inclusionFiltersBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.cloud.gkebackup.v1.ResourceSelector m = input.readMessage( com.google.cloud.gkebackup.v1.ResourceSelector.parser(), extensionRegistry); if (exclusionFiltersBuilder_ == null) { ensureExclusionFiltersIsMutable(); exclusionFilters_.add(m); } else { exclusionFiltersBuilder_.addMessage(m); } 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 java.util.List inclusionFilters_ = java.util.Collections.emptyList(); private void ensureInclusionFiltersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { inclusionFilters_ = new java.util.ArrayList( inclusionFilters_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.gkebackup.v1.ResourceSelector, com.google.cloud.gkebackup.v1.ResourceSelector.Builder, com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder> inclusionFiltersBuilder_; /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getInclusionFiltersList() { if (inclusionFiltersBuilder_ == null) { return java.util.Collections.unmodifiableList(inclusionFilters_); } else { return inclusionFiltersBuilder_.getMessageList(); } } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getInclusionFiltersCount() { if (inclusionFiltersBuilder_ == null) { return inclusionFilters_.size(); } else { return inclusionFiltersBuilder_.getCount(); } } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.ResourceSelector getInclusionFilters(int index) { if (inclusionFiltersBuilder_ == null) { return inclusionFilters_.get(index); } else { return inclusionFiltersBuilder_.getMessage(index); } } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setInclusionFilters( int index, com.google.cloud.gkebackup.v1.ResourceSelector value) { if (inclusionFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInclusionFiltersIsMutable(); inclusionFilters_.set(index, value); onChanged(); } else { inclusionFiltersBuilder_.setMessage(index, value); } return this; } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setInclusionFilters( int index, com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { if (inclusionFiltersBuilder_ == null) { ensureInclusionFiltersIsMutable(); inclusionFilters_.set(index, builderForValue.build()); onChanged(); } else { inclusionFiltersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addInclusionFilters(com.google.cloud.gkebackup.v1.ResourceSelector value) { if (inclusionFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInclusionFiltersIsMutable(); inclusionFilters_.add(value); onChanged(); } else { inclusionFiltersBuilder_.addMessage(value); } return this; } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addInclusionFilters( int index, com.google.cloud.gkebackup.v1.ResourceSelector value) { if (inclusionFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInclusionFiltersIsMutable(); inclusionFilters_.add(index, value); onChanged(); } else { inclusionFiltersBuilder_.addMessage(index, value); } return this; } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addInclusionFilters( com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { if (inclusionFiltersBuilder_ == null) { ensureInclusionFiltersIsMutable(); inclusionFilters_.add(builderForValue.build()); onChanged(); } else { inclusionFiltersBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addInclusionFilters( int index, com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { if (inclusionFiltersBuilder_ == null) { ensureInclusionFiltersIsMutable(); inclusionFilters_.add(index, builderForValue.build()); onChanged(); } else { inclusionFiltersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllInclusionFilters( java.lang.Iterable values) { if (inclusionFiltersBuilder_ == null) { ensureInclusionFiltersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inclusionFilters_); onChanged(); } else { inclusionFiltersBuilder_.addAllMessages(values); } return this; } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearInclusionFilters() { if (inclusionFiltersBuilder_ == null) { inclusionFilters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { inclusionFiltersBuilder_.clear(); } return this; } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeInclusionFilters(int index) { if (inclusionFiltersBuilder_ == null) { ensureInclusionFiltersIsMutable(); inclusionFilters_.remove(index); onChanged(); } else { inclusionFiltersBuilder_.remove(index); } return this; } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.ResourceSelector.Builder getInclusionFiltersBuilder( int index) { return getInclusionFiltersFieldBuilder().getBuilder(index); } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getInclusionFiltersOrBuilder( int index) { if (inclusionFiltersBuilder_ == null) { return inclusionFilters_.get(index); } else { return inclusionFiltersBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getInclusionFiltersOrBuilderList() { if (inclusionFiltersBuilder_ != null) { return inclusionFiltersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inclusionFilters_); } } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.ResourceSelector.Builder addInclusionFiltersBuilder() { return getInclusionFiltersFieldBuilder() .addBuilder(com.google.cloud.gkebackup.v1.ResourceSelector.getDefaultInstance()); } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.ResourceSelector.Builder addInclusionFiltersBuilder( int index) { return getInclusionFiltersFieldBuilder() .addBuilder(index, com.google.cloud.gkebackup.v1.ResourceSelector.getDefaultInstance()); } /** * * *
       * Optional. Selects resources for restoration. If specified, only resources
       * which match `inclusion_filters` will be selected for restoration. A
       * resource will be selected if it matches any `ResourceSelector` of the
       * `inclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getInclusionFiltersBuilderList() { return getInclusionFiltersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.gkebackup.v1.ResourceSelector, com.google.cloud.gkebackup.v1.ResourceSelector.Builder, com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder> getInclusionFiltersFieldBuilder() { if (inclusionFiltersBuilder_ == null) { inclusionFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.gkebackup.v1.ResourceSelector, com.google.cloud.gkebackup.v1.ResourceSelector.Builder, com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder>( inclusionFilters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); inclusionFilters_ = null; } return inclusionFiltersBuilder_; } private java.util.List exclusionFilters_ = java.util.Collections.emptyList(); private void ensureExclusionFiltersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { exclusionFilters_ = new java.util.ArrayList( exclusionFilters_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.gkebackup.v1.ResourceSelector, com.google.cloud.gkebackup.v1.ResourceSelector.Builder, com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder> exclusionFiltersBuilder_; /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getExclusionFiltersList() { if (exclusionFiltersBuilder_ == null) { return java.util.Collections.unmodifiableList(exclusionFilters_); } else { return exclusionFiltersBuilder_.getMessageList(); } } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getExclusionFiltersCount() { if (exclusionFiltersBuilder_ == null) { return exclusionFilters_.size(); } else { return exclusionFiltersBuilder_.getCount(); } } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.ResourceSelector getExclusionFilters(int index) { if (exclusionFiltersBuilder_ == null) { return exclusionFilters_.get(index); } else { return exclusionFiltersBuilder_.getMessage(index); } } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setExclusionFilters( int index, com.google.cloud.gkebackup.v1.ResourceSelector value) { if (exclusionFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExclusionFiltersIsMutable(); exclusionFilters_.set(index, value); onChanged(); } else { exclusionFiltersBuilder_.setMessage(index, value); } return this; } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setExclusionFilters( int index, com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { if (exclusionFiltersBuilder_ == null) { ensureExclusionFiltersIsMutable(); exclusionFilters_.set(index, builderForValue.build()); onChanged(); } else { exclusionFiltersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addExclusionFilters(com.google.cloud.gkebackup.v1.ResourceSelector value) { if (exclusionFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExclusionFiltersIsMutable(); exclusionFilters_.add(value); onChanged(); } else { exclusionFiltersBuilder_.addMessage(value); } return this; } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addExclusionFilters( int index, com.google.cloud.gkebackup.v1.ResourceSelector value) { if (exclusionFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExclusionFiltersIsMutable(); exclusionFilters_.add(index, value); onChanged(); } else { exclusionFiltersBuilder_.addMessage(index, value); } return this; } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addExclusionFilters( com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { if (exclusionFiltersBuilder_ == null) { ensureExclusionFiltersIsMutable(); exclusionFilters_.add(builderForValue.build()); onChanged(); } else { exclusionFiltersBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addExclusionFilters( int index, com.google.cloud.gkebackup.v1.ResourceSelector.Builder builderForValue) { if (exclusionFiltersBuilder_ == null) { ensureExclusionFiltersIsMutable(); exclusionFilters_.add(index, builderForValue.build()); onChanged(); } else { exclusionFiltersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllExclusionFilters( java.lang.Iterable values) { if (exclusionFiltersBuilder_ == null) { ensureExclusionFiltersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exclusionFilters_); onChanged(); } else { exclusionFiltersBuilder_.addAllMessages(values); } return this; } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearExclusionFilters() { if (exclusionFiltersBuilder_ == null) { exclusionFilters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { exclusionFiltersBuilder_.clear(); } return this; } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeExclusionFilters(int index) { if (exclusionFiltersBuilder_ == null) { ensureExclusionFiltersIsMutable(); exclusionFilters_.remove(index); onChanged(); } else { exclusionFiltersBuilder_.remove(index); } return this; } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.ResourceSelector.Builder getExclusionFiltersBuilder( int index) { return getExclusionFiltersFieldBuilder().getBuilder(index); } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder getExclusionFiltersOrBuilder( int index) { if (exclusionFiltersBuilder_ == null) { return exclusionFilters_.get(index); } else { return exclusionFiltersBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getExclusionFiltersOrBuilderList() { if (exclusionFiltersBuilder_ != null) { return exclusionFiltersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exclusionFilters_); } } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.ResourceSelector.Builder addExclusionFiltersBuilder() { return getExclusionFiltersFieldBuilder() .addBuilder(com.google.cloud.gkebackup.v1.ResourceSelector.getDefaultInstance()); } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.ResourceSelector.Builder addExclusionFiltersBuilder( int index) { return getExclusionFiltersFieldBuilder() .addBuilder(index, com.google.cloud.gkebackup.v1.ResourceSelector.getDefaultInstance()); } /** * * *
       * Optional. Excludes resources from restoration. If specified,
       * a resource will not be restored if it matches
       * any `ResourceSelector` of the `exclusion_filters`.
       * 
* * * repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getExclusionFiltersBuilderList() { return getExclusionFiltersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.gkebackup.v1.ResourceSelector, com.google.cloud.gkebackup.v1.ResourceSelector.Builder, com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder> getExclusionFiltersFieldBuilder() { if (exclusionFiltersBuilder_ == null) { exclusionFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.gkebackup.v1.ResourceSelector, com.google.cloud.gkebackup.v1.ResourceSelector.Builder, com.google.cloud.gkebackup.v1.ResourceSelectorOrBuilder>( exclusionFilters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); exclusionFilters_ = null; } return exclusionFiltersBuilder_; } @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.gkebackup.v1.Restore.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Restore.Filter) private static final com.google.cloud.gkebackup.v1.Restore.Filter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Restore.Filter(); } public static com.google.cloud.gkebackup.v1.Restore.Filter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Filter 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.gkebackup.v1.Restore.Filter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Output only. The full name of the Restore resource.
   * Format: `projects/*/locations/*/restorePlans/*/restores/*`
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * Output only. The full name of the Restore resource.
   * Format: `projects/*/locations/*/restorePlans/*/restores/*`
   * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** * * *
   * Output only. Server generated global unique identifier of
   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
   * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The uid. */ @java.lang.Override public java.lang.String getUid() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** * * *
   * Output only. Server generated global unique identifier of
   * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
   * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for uid. */ @java.lang.Override public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. The timestamp when this Restore resource was created.
   * 
* * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. The timestamp when this Restore resource was created.
   * 
* * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Output only. The timestamp when this Restore resource was created.
   * 
* * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Output only. The timestamp when this Restore resource was last
   * updated.
   * 
* * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. The timestamp when this Restore resource was last
   * updated.
   * 
* * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * Output only. The timestamp when this Restore resource was last
   * updated.
   * 
* * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int DESCRIPTION_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * User specified descriptive string for this Restore.
   * 
* * string description = 5; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * * *
   * User specified descriptive string for this Restore.
   * 
* * string description = 5; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BACKUP_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object backup_ = ""; /** * * *
   * Required. Immutable. A reference to the
   * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
   * this Restore will restore. Note that this Backup must be a sub-resource of
   * the RestorePlan's
   * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
   * `projects/*/locations/*/backupPlans/*/backups/*`.
   * 
* * * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The backup. */ @java.lang.Override public java.lang.String getBackup() { java.lang.Object ref = backup_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backup_ = s; return s; } } /** * * *
   * Required. Immutable. A reference to the
   * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
   * this Restore will restore. Note that this Backup must be a sub-resource of
   * the RestorePlan's
   * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
   * `projects/*/locations/*/backupPlans/*/backups/*`.
   * 
* * * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for backup. */ @java.lang.Override public com.google.protobuf.ByteString getBackupBytes() { java.lang.Object ref = backup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLUSTER_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object cluster_ = ""; /** * * *
   * Output only. The target cluster into which this Restore will restore data.
   * Valid formats:
   *
   *   - `projects/*/locations/*/clusters/*`
   *   - `projects/*/zones/*/clusters/*`
   *
   * Inherited from parent RestorePlan's
   * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
   * 
* * * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The cluster. */ @java.lang.Override public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } } /** * * *
   * Output only. The target cluster into which this Restore will restore data.
   * Valid formats:
   *
   *   - `projects/*/locations/*/clusters/*`
   *   - `projects/*/zones/*/clusters/*`
   *
   * Inherited from parent RestorePlan's
   * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
   * 
* * * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for cluster. */ @java.lang.Override public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cluster_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESTORE_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; /** * * *
   * Output only. Configuration of the Restore.  Inherited from parent
   * RestorePlan's
   * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
   * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the restoreConfig field is set. */ @java.lang.Override public boolean hasRestoreConfig() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Output only. Configuration of the Restore.  Inherited from parent
   * RestorePlan's
   * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
   * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The restoreConfig. */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; } /** * * *
   * Output only. Configuration of the Restore.  Inherited from parent
   * RestorePlan's
   * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
   * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; } public static final int LABELS_FIELD_NUMBER = 9; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * A set of custom labels supplied by user.
   * 
* * map<string, string> labels = 9; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * A set of custom labels supplied by user.
   * 
* * map<string, string> labels = 9; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * A set of custom labels supplied by user.
   * 
* * map<string, string> labels = 9; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * A set of custom labels supplied by user.
   * 
* * map<string, string> labels = 9; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int STATE_FIELD_NUMBER = 10; private int state_ = 0; /** * * *
   * Output only. The current state of the Restore.
   * 
* * * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * Output only. The current state of the Restore.
   * 
* * * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.State getState() { com.google.cloud.gkebackup.v1.Restore.State result = com.google.cloud.gkebackup.v1.Restore.State.forNumber(state_); return result == null ? com.google.cloud.gkebackup.v1.Restore.State.UNRECOGNIZED : result; } public static final int STATE_REASON_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object stateReason_ = ""; /** * * *
   * Output only. Human-readable description of why the Restore is in its
   * current state.
   * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The stateReason. */ @java.lang.Override public java.lang.String getStateReason() { java.lang.Object ref = stateReason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateReason_ = s; return s; } } /** * * *
   * Output only. Human-readable description of why the Restore is in its
   * current state.
   * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for stateReason. */ @java.lang.Override public com.google.protobuf.ByteString getStateReasonBytes() { java.lang.Object ref = stateReason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPLETE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp completeTime_; /** * * *
   * Output only. Timestamp of when the restore operation completed.
   * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the completeTime field is set. */ @java.lang.Override public boolean hasCompleteTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Output only. Timestamp of when the restore operation completed.
   * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The completeTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCompleteTime() { return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } /** * * *
   * Output only. Timestamp of when the restore operation completed.
   * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } public static final int RESOURCES_RESTORED_COUNT_FIELD_NUMBER = 13; private int resourcesRestoredCount_ = 0; /** * * *
   * Output only. Number of resources restored during the restore execution.
   * 
* * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The resourcesRestoredCount. */ @java.lang.Override public int getResourcesRestoredCount() { return resourcesRestoredCount_; } public static final int RESOURCES_EXCLUDED_COUNT_FIELD_NUMBER = 14; private int resourcesExcludedCount_ = 0; /** * * *
   * Output only. Number of resources excluded during the restore execution.
   * 
* * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The resourcesExcludedCount. */ @java.lang.Override public int getResourcesExcludedCount() { return resourcesExcludedCount_; } public static final int RESOURCES_FAILED_COUNT_FIELD_NUMBER = 15; private int resourcesFailedCount_ = 0; /** * * *
   * Output only. Number of resources that failed to be restored during the
   * restore execution.
   * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The resourcesFailedCount. */ @java.lang.Override public int getResourcesFailedCount() { return resourcesFailedCount_; } public static final int VOLUMES_RESTORED_COUNT_FIELD_NUMBER = 16; private int volumesRestoredCount_ = 0; /** * * *
   * Output only. Number of volumes restored during the restore execution.
   * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The volumesRestoredCount. */ @java.lang.Override public int getVolumesRestoredCount() { return volumesRestoredCount_; } public static final int ETAG_FIELD_NUMBER = 17; @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** * * *
   * Output only. `etag` is used for optimistic concurrency control as a way to
   * help prevent simultaneous updates of a restore from overwriting each other.
   * It is strongly suggested that systems make use of the `etag` in the
   * read-modify-write cycle to perform restore updates in order to avoid
   * race conditions: An `etag` is returned in the response to `GetRestore`,
   * and systems are expected to put that etag in the request to
   * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
   * applied to the same version of the resource.
   * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The etag. */ @java.lang.Override public java.lang.String getEtag() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** * * *
   * Output only. `etag` is used for optimistic concurrency control as a way to
   * help prevent simultaneous updates of a restore from overwriting each other.
   * It is strongly suggested that systems make use of the `etag` in the
   * read-modify-write cycle to perform restore updates in order to avoid
   * race conditions: An `etag` is returned in the response to `GetRestore`,
   * and systems are expected to put that etag in the request to
   * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
   * applied to the same version of the resource.
   * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for etag. */ @java.lang.Override public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILTER_FIELD_NUMBER = 18; private com.google.cloud.gkebackup.v1.Restore.Filter filter_; /** * * *
   * Optional. Immutable. Filters resources for `Restore`. If not specified, the
   * scope of the restore will remain the same as defined in the `RestorePlan`.
   * If this is specified, and no resources are matched by the
   * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
   * nothing will be restored. This filter can only be specified if the value of
   * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
   * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
   * `MERGE_REPLACE_ON_CONFLICT`.
   * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the filter field is set. */ @java.lang.Override public boolean hasFilter() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Optional. Immutable. Filters resources for `Restore`. If not specified, the
   * scope of the restore will remain the same as defined in the `RestorePlan`.
   * If this is specified, and no resources are matched by the
   * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
   * nothing will be restored. This filter can only be specified if the value of
   * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
   * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
   * `MERGE_REPLACE_ON_CONFLICT`.
   * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * * @return The filter. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.Filter getFilter() { return filter_ == null ? com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance() : filter_; } /** * * *
   * Optional. Immutable. Filters resources for `Restore`. If not specified, the
   * scope of the restore will remain the same as defined in the `RestorePlan`.
   * If this is specified, and no resources are matched by the
   * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
   * nothing will be restored. This filter can only be specified if the value of
   * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
   * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
   * `MERGE_REPLACE_ON_CONFLICT`.
   * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder getFilterOrBuilder() { return filter_ == null ? com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance() : filter_; } public static final int VOLUME_DATA_RESTORE_POLICY_OVERRIDES_FIELD_NUMBER = 19; @SuppressWarnings("serial") private java.util.List volumeDataRestorePolicyOverrides_; /** * * *
   * Optional. Immutable. Overrides the volume data restore policies selected in
   * the Restore Config for override-scoped resources.
   * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List getVolumeDataRestorePolicyOverridesList() { return volumeDataRestorePolicyOverrides_; } /** * * *
   * Optional. Immutable. Overrides the volume data restore policies selected in
   * the Restore Config for override-scoped resources.
   * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder> getVolumeDataRestorePolicyOverridesOrBuilderList() { return volumeDataRestorePolicyOverrides_; } /** * * *
   * Optional. Immutable. Overrides the volume data restore policies selected in
   * the Restore Config for override-scoped resources.
   * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public int getVolumeDataRestorePolicyOverridesCount() { return volumeDataRestorePolicyOverrides_.size(); } /** * * *
   * Optional. Immutable. Overrides the volume data restore policies selected in
   * the Restore Config for override-scoped resources.
   * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride getVolumeDataRestorePolicyOverrides(int index) { return volumeDataRestorePolicyOverrides_.get(index); } /** * * *
   * Optional. Immutable. Overrides the volume data restore policies selected in
   * the Restore Config for override-scoped resources.
   * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder getVolumeDataRestorePolicyOverridesOrBuilder(int index) { return volumeDataRestorePolicyOverrides_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, backup_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, cluster_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getRestoreConfig()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); if (state_ != com.google.cloud.gkebackup.v1.Restore.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, stateReason_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(12, getCompleteTime()); } if (resourcesRestoredCount_ != 0) { output.writeInt32(13, resourcesRestoredCount_); } if (resourcesExcludedCount_ != 0) { output.writeInt32(14, resourcesExcludedCount_); } if (resourcesFailedCount_ != 0) { output.writeInt32(15, resourcesFailedCount_); } if (volumesRestoredCount_ != 0) { output.writeInt32(16, volumesRestoredCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, etag_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(18, getFilter()); } for (int i = 0; i < volumeDataRestorePolicyOverrides_.size(); i++) { output.writeMessage(19, volumeDataRestorePolicyOverrides_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, backup_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cluster_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRestoreConfig()); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); } if (state_ != com.google.cloud.gkebackup.v1.Restore.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, stateReason_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCompleteTime()); } if (resourcesRestoredCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, resourcesRestoredCount_); } if (resourcesExcludedCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, resourcesExcludedCount_); } if (resourcesFailedCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, resourcesFailedCount_); } if (volumesRestoredCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, volumesRestoredCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getFilter()); } for (int i = 0; i < volumeDataRestorePolicyOverrides_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 19, volumeDataRestorePolicyOverrides_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.gkebackup.v1.Restore)) { return super.equals(obj); } com.google.cloud.gkebackup.v1.Restore other = (com.google.cloud.gkebackup.v1.Restore) obj; if (!getName().equals(other.getName())) return false; if (!getUid().equals(other.getUid())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getDescription().equals(other.getDescription())) return false; if (!getBackup().equals(other.getBackup())) return false; if (!getCluster().equals(other.getCluster())) return false; if (hasRestoreConfig() != other.hasRestoreConfig()) return false; if (hasRestoreConfig()) { if (!getRestoreConfig().equals(other.getRestoreConfig())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (state_ != other.state_) return false; if (!getStateReason().equals(other.getStateReason())) return false; if (hasCompleteTime() != other.hasCompleteTime()) return false; if (hasCompleteTime()) { if (!getCompleteTime().equals(other.getCompleteTime())) return false; } if (getResourcesRestoredCount() != other.getResourcesRestoredCount()) return false; if (getResourcesExcludedCount() != other.getResourcesExcludedCount()) return false; if (getResourcesFailedCount() != other.getResourcesFailedCount()) return false; if (getVolumesRestoredCount() != other.getVolumesRestoredCount()) return false; if (!getEtag().equals(other.getEtag())) return false; if (hasFilter() != other.hasFilter()) return false; if (hasFilter()) { if (!getFilter().equals(other.getFilter())) return false; } if (!getVolumeDataRestorePolicyOverridesList() .equals(other.getVolumeDataRestorePolicyOverridesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + BACKUP_FIELD_NUMBER; hash = (53 * hash) + getBackup().hashCode(); hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); if (hasRestoreConfig()) { hash = (37 * hash) + RESTORE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRestoreConfig().hashCode(); } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + STATE_REASON_FIELD_NUMBER; hash = (53 * hash) + getStateReason().hashCode(); if (hasCompleteTime()) { hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCompleteTime().hashCode(); } hash = (37 * hash) + RESOURCES_RESTORED_COUNT_FIELD_NUMBER; hash = (53 * hash) + getResourcesRestoredCount(); hash = (37 * hash) + RESOURCES_EXCLUDED_COUNT_FIELD_NUMBER; hash = (53 * hash) + getResourcesExcludedCount(); hash = (37 * hash) + RESOURCES_FAILED_COUNT_FIELD_NUMBER; hash = (53 * hash) + getResourcesFailedCount(); hash = (37 * hash) + VOLUMES_RESTORED_COUNT_FIELD_NUMBER; hash = (53 * hash) + getVolumesRestoredCount(); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); if (hasFilter()) { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); } if (getVolumeDataRestorePolicyOverridesCount() > 0) { hash = (37 * hash) + VOLUME_DATA_RESTORE_POLICY_OVERRIDES_FIELD_NUMBER; hash = (53 * hash) + getVolumeDataRestorePolicyOverridesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkebackup.v1.Restore parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.gkebackup.v1.Restore parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.gkebackup.v1.Restore parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.gkebackup.v1.Restore parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.gkebackup.v1.Restore parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.gkebackup.v1.Restore parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.gkebackup.v1.Restore parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.gkebackup.v1.Restore parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.gkebackup.v1.Restore parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.gkebackup.v1.Restore parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.gkebackup.v1.Restore parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.gkebackup.v1.Restore parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.gkebackup.v1.Restore prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Represents both a request to Restore some portion of a Backup into
   * a target GKE cluster and a record of the restore operation itself.
   * 
* * Protobuf type {@code google.cloud.gkebackup.v1.Restore} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkebackup.v1.Restore) com.google.cloud.gkebackup.v1.RestoreOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 9: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 9: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.gkebackup.v1.Restore.class, com.google.cloud.gkebackup.v1.Restore.Builder.class); } // Construct using com.google.cloud.gkebackup.v1.Restore.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(); getUpdateTimeFieldBuilder(); getRestoreConfigFieldBuilder(); getCompleteTimeFieldBuilder(); getFilterFieldBuilder(); getVolumeDataRestorePolicyOverridesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; uid_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } description_ = ""; backup_ = ""; cluster_ = ""; restoreConfig_ = null; if (restoreConfigBuilder_ != null) { restoreConfigBuilder_.dispose(); restoreConfigBuilder_ = null; } internalGetMutableLabels().clear(); state_ = 0; stateReason_ = ""; completeTime_ = null; if (completeTimeBuilder_ != null) { completeTimeBuilder_.dispose(); completeTimeBuilder_ = null; } resourcesRestoredCount_ = 0; resourcesExcludedCount_ = 0; resourcesFailedCount_ = 0; volumesRestoredCount_ = 0; etag_ = ""; filter_ = null; if (filterBuilder_ != null) { filterBuilder_.dispose(); filterBuilder_ = null; } if (volumeDataRestorePolicyOverridesBuilder_ == null) { volumeDataRestorePolicyOverrides_ = java.util.Collections.emptyList(); } else { volumeDataRestorePolicyOverrides_ = null; volumeDataRestorePolicyOverridesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.gkebackup.v1.RestoreProto .internal_static_google_cloud_gkebackup_v1_Restore_descriptor; } @java.lang.Override public com.google.cloud.gkebackup.v1.Restore getDefaultInstanceForType() { return com.google.cloud.gkebackup.v1.Restore.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkebackup.v1.Restore build() { com.google.cloud.gkebackup.v1.Restore result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.gkebackup.v1.Restore buildPartial() { com.google.cloud.gkebackup.v1.Restore result = new com.google.cloud.gkebackup.v1.Restore(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.gkebackup.v1.Restore result) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { if (((bitField0_ & 0x00040000) != 0)) { volumeDataRestorePolicyOverrides_ = java.util.Collections.unmodifiableList(volumeDataRestorePolicyOverrides_); bitField0_ = (bitField0_ & ~0x00040000); } result.volumeDataRestorePolicyOverrides_ = volumeDataRestorePolicyOverrides_; } else { result.volumeDataRestorePolicyOverrides_ = volumeDataRestorePolicyOverridesBuilder_.build(); } } private void buildPartial0(com.google.cloud.gkebackup.v1.Restore result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.uid_ = uid_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.backup_ = backup_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.cluster_ = cluster_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.restoreConfig_ = restoreConfigBuilder_ == null ? restoreConfig_ : restoreConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000100) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.stateReason_ = stateReason_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.completeTime_ = completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00001000) != 0)) { result.resourcesRestoredCount_ = resourcesRestoredCount_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.resourcesExcludedCount_ = resourcesExcludedCount_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.resourcesFailedCount_ = resourcesFailedCount_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.volumesRestoredCount_ = volumesRestoredCount_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.etag_ = etag_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); to_bitField0_ |= 0x00000010; } 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.gkebackup.v1.Restore) { return mergeFrom((com.google.cloud.gkebackup.v1.Restore) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.gkebackup.v1.Restore other) { if (other == com.google.cloud.gkebackup.v1.Restore.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getUid().isEmpty()) { uid_ = other.uid_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getBackup().isEmpty()) { backup_ = other.backup_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getCluster().isEmpty()) { cluster_ = other.cluster_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasRestoreConfig()) { mergeRestoreConfig(other.getRestoreConfig()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000100; if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getStateReason().isEmpty()) { stateReason_ = other.stateReason_; bitField0_ |= 0x00000400; onChanged(); } if (other.hasCompleteTime()) { mergeCompleteTime(other.getCompleteTime()); } if (other.getResourcesRestoredCount() != 0) { setResourcesRestoredCount(other.getResourcesRestoredCount()); } if (other.getResourcesExcludedCount() != 0) { setResourcesExcludedCount(other.getResourcesExcludedCount()); } if (other.getResourcesFailedCount() != 0) { setResourcesFailedCount(other.getResourcesFailedCount()); } if (other.getVolumesRestoredCount() != 0) { setVolumesRestoredCount(other.getVolumesRestoredCount()); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; bitField0_ |= 0x00010000; onChanged(); } if (other.hasFilter()) { mergeFilter(other.getFilter()); } if (volumeDataRestorePolicyOverridesBuilder_ == null) { if (!other.volumeDataRestorePolicyOverrides_.isEmpty()) { if (volumeDataRestorePolicyOverrides_.isEmpty()) { volumeDataRestorePolicyOverrides_ = other.volumeDataRestorePolicyOverrides_; bitField0_ = (bitField0_ & ~0x00040000); } else { ensureVolumeDataRestorePolicyOverridesIsMutable(); volumeDataRestorePolicyOverrides_.addAll(other.volumeDataRestorePolicyOverrides_); } onChanged(); } } else { if (!other.volumeDataRestorePolicyOverrides_.isEmpty()) { if (volumeDataRestorePolicyOverridesBuilder_.isEmpty()) { volumeDataRestorePolicyOverridesBuilder_.dispose(); volumeDataRestorePolicyOverridesBuilder_ = null; volumeDataRestorePolicyOverrides_ = other.volumeDataRestorePolicyOverrides_; bitField0_ = (bitField0_ & ~0x00040000); volumeDataRestorePolicyOverridesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumeDataRestorePolicyOverridesFieldBuilder() : null; } else { volumeDataRestorePolicyOverridesBuilder_.addAllMessages( other.volumeDataRestorePolicyOverrides_); } } } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { uid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { backup_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { cluster_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getRestoreConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000100; break; } // case 74 case 80: { state_ = input.readEnum(); bitField0_ |= 0x00000200; break; } // case 80 case 90: { stateReason_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { input.readMessage(getCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 98 case 104: { resourcesRestoredCount_ = input.readInt32(); bitField0_ |= 0x00001000; break; } // case 104 case 112: { resourcesExcludedCount_ = input.readInt32(); bitField0_ |= 0x00002000; break; } // case 112 case 120: { resourcesFailedCount_ = input.readInt32(); bitField0_ |= 0x00004000; break; } // case 120 case 128: { volumesRestoredCount_ = input.readInt32(); bitField0_ |= 0x00008000; break; } // case 128 case 138: { etag_ = input.readStringRequireUtf8(); bitField0_ |= 0x00010000; break; } // case 138 case 146: { input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00020000; break; } // case 146 case 154: { com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride m = input.readMessage( com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.parser(), extensionRegistry); if (volumeDataRestorePolicyOverridesBuilder_ == null) { ensureVolumeDataRestorePolicyOverridesIsMutable(); volumeDataRestorePolicyOverrides_.add(m); } else { volumeDataRestorePolicyOverridesBuilder_.addMessage(m); } break; } // case 154 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 java.lang.Object name_ = ""; /** * * *
     * Output only. The full name of the Restore resource.
     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The full name of the Restore resource.
     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The full name of the Restore resource.
     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Output only. The full name of the Restore resource.
     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Output only. The full name of the Restore resource.
     * Format: `projects/*/locations/*/restorePlans/*/restores/*`
     * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object uid_ = ""; /** * * *
     * Output only. Server generated global unique identifier of
     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Server generated global unique identifier of
     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for uid. */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Server generated global unique identifier of
     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The uid to set. * @return This builder for chaining. */ public Builder setUid(java.lang.String value) { if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. Server generated global unique identifier of
     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Output only. Server generated global unique identifier of
     * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for uid to set. * @return This builder for chaining. */ public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } 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. The timestamp when this Restore resource was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Output only. The timestamp when this Restore resource was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.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. The timestamp when this Restore resource was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The timestamp when this Restore resource was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The timestamp when this Restore resource was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Output only. The timestamp when this Restore resource was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The timestamp when this Restore resource was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The timestamp when this Restore resource was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.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. The timestamp when this Restore resource was created.
     * 
* * * .google.protobuf.Timestamp create_time = 3 [(.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 updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** * * *
     * Output only. The timestamp when this Restore resource was last
     * updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Output only. The timestamp when this Restore resource was last
     * updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The timestamp when this Restore resource was last
     * updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The timestamp when this Restore resource was last
     * updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The timestamp when this Restore resource was last
     * updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Output only. The timestamp when this Restore resource was last
     * updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The timestamp when this Restore resource was last
     * updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The timestamp when this Restore resource was last
     * updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
     * Output only. The timestamp when this Restore resource was last
     * updated.
     * 
* * * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private java.lang.Object description_ = ""; /** * * *
     * User specified descriptive string for this Restore.
     * 
* * string description = 5; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * User specified descriptive string for this Restore.
     * 
* * string description = 5; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * User specified descriptive string for this Restore.
     * 
* * string description = 5; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * User specified descriptive string for this Restore.
     * 
* * string description = 5; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * User specified descriptive string for this Restore.
     * 
* * string description = 5; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object backup_ = ""; /** * * *
     * Required. Immutable. A reference to the
     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
     * this Restore will restore. Note that this Backup must be a sub-resource of
     * the RestorePlan's
     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
     * `projects/*/locations/*/backupPlans/*/backups/*`.
     * 
* * * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The backup. */ public java.lang.String getBackup() { java.lang.Object ref = backup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); backup_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Immutable. A reference to the
     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
     * this Restore will restore. Note that this Backup must be a sub-resource of
     * the RestorePlan's
     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
     * `projects/*/locations/*/backupPlans/*/backups/*`.
     * 
* * * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for backup. */ public com.google.protobuf.ByteString getBackupBytes() { java.lang.Object ref = backup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); backup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Immutable. A reference to the
     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
     * this Restore will restore. Note that this Backup must be a sub-resource of
     * the RestorePlan's
     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
     * `projects/*/locations/*/backupPlans/*/backups/*`.
     * 
* * * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The backup to set. * @return This builder for chaining. */ public Builder setBackup(java.lang.String value) { if (value == null) { throw new NullPointerException(); } backup_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Required. Immutable. A reference to the
     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
     * this Restore will restore. Note that this Backup must be a sub-resource of
     * the RestorePlan's
     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
     * `projects/*/locations/*/backupPlans/*/backups/*`.
     * 
* * * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearBackup() { backup_ = getDefaultInstance().getBackup(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * Required. Immutable. A reference to the
     * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
     * this Restore will restore. Note that this Backup must be a sub-resource of
     * the RestorePlan's
     * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
     * `projects/*/locations/*/backupPlans/*/backups/*`.
     * 
* * * string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for backup to set. * @return This builder for chaining. */ public Builder setBackupBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); backup_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object cluster_ = ""; /** * * *
     * Output only. The target cluster into which this Restore will restore data.
     * Valid formats:
     *
     *   - `projects/*/locations/*/clusters/*`
     *   - `projects/*/zones/*/clusters/*`
     *
     * Inherited from parent RestorePlan's
     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
     * 
* * * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cluster_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The target cluster into which this Restore will restore data.
     * Valid formats:
     *
     *   - `projects/*/locations/*/clusters/*`
     *   - `projects/*/zones/*/clusters/*`
     *
     * Inherited from parent RestorePlan's
     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
     * 
* * * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for cluster. */ public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cluster_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The target cluster into which this Restore will restore data.
     * Valid formats:
     *
     *   - `projects/*/locations/*/clusters/*`
     *   - `projects/*/zones/*/clusters/*`
     *
     * Inherited from parent RestorePlan's
     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
     * 
* * * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The cluster to set. * @return This builder for chaining. */ public Builder setCluster(java.lang.String value) { if (value == null) { throw new NullPointerException(); } cluster_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Output only. The target cluster into which this Restore will restore data.
     * Valid formats:
     *
     *   - `projects/*/locations/*/clusters/*`
     *   - `projects/*/zones/*/clusters/*`
     *
     * Inherited from parent RestorePlan's
     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
     * 
* * * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearCluster() { cluster_ = getDefaultInstance().getCluster(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Output only. The target cluster into which this Restore will restore data.
     * Valid formats:
     *
     *   - `projects/*/locations/*/clusters/*`
     *   - `projects/*/zones/*/clusters/*`
     *
     * Inherited from parent RestorePlan's
     * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
     * 
* * * string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The bytes for cluster to set. * @return This builder for chaining. */ public Builder setClusterBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cluster_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.cloud.gkebackup.v1.RestoreConfig restoreConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> restoreConfigBuilder_; /** * * *
     * Output only. Configuration of the Restore.  Inherited from parent
     * RestorePlan's
     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
     * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the restoreConfig field is set. */ public boolean hasRestoreConfig() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * Output only. Configuration of the Restore.  Inherited from parent
     * RestorePlan's
     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
     * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The restoreConfig. */ public com.google.cloud.gkebackup.v1.RestoreConfig getRestoreConfig() { if (restoreConfigBuilder_ == null) { return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; } else { return restoreConfigBuilder_.getMessage(); } } /** * * *
     * Output only. Configuration of the Restore.  Inherited from parent
     * RestorePlan's
     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
     * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { if (restoreConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } restoreConfig_ = value; } else { restoreConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. Configuration of the Restore.  Inherited from parent
     * RestorePlan's
     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
     * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setRestoreConfig( com.google.cloud.gkebackup.v1.RestoreConfig.Builder builderForValue) { if (restoreConfigBuilder_ == null) { restoreConfig_ = builderForValue.build(); } else { restoreConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. Configuration of the Restore.  Inherited from parent
     * RestorePlan's
     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
     * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeRestoreConfig(com.google.cloud.gkebackup.v1.RestoreConfig value) { if (restoreConfigBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && restoreConfig_ != null && restoreConfig_ != com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance()) { getRestoreConfigBuilder().mergeFrom(value); } else { restoreConfig_ = value; } } else { restoreConfigBuilder_.mergeFrom(value); } if (restoreConfig_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
     * Output only. Configuration of the Restore.  Inherited from parent
     * RestorePlan's
     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
     * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearRestoreConfig() { bitField0_ = (bitField0_ & ~0x00000080); restoreConfig_ = null; if (restoreConfigBuilder_ != null) { restoreConfigBuilder_.dispose(); restoreConfigBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Configuration of the Restore.  Inherited from parent
     * RestorePlan's
     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
     * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.gkebackup.v1.RestoreConfig.Builder getRestoreConfigBuilder() { bitField0_ |= 0x00000080; onChanged(); return getRestoreConfigFieldBuilder().getBuilder(); } /** * * *
     * Output only. Configuration of the Restore.  Inherited from parent
     * RestorePlan's
     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
     * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder getRestoreConfigOrBuilder() { if (restoreConfigBuilder_ != null) { return restoreConfigBuilder_.getMessageOrBuilder(); } else { return restoreConfig_ == null ? com.google.cloud.gkebackup.v1.RestoreConfig.getDefaultInstance() : restoreConfig_; } } /** * * *
     * Output only. Configuration of the Restore.  Inherited from parent
     * RestorePlan's
     * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
     * 
* * * .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder> getRestoreConfigFieldBuilder() { if (restoreConfigBuilder_ == null) { restoreConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gkebackup.v1.RestoreConfig, com.google.cloud.gkebackup.v1.RestoreConfig.Builder, com.google.cloud.gkebackup.v1.RestoreConfigOrBuilder>( getRestoreConfig(), getParentForChildren(), isClean()); restoreConfig_ = null; } return restoreConfigBuilder_; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000100; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * A set of custom labels supplied by user.
     * 
* * map<string, string> labels = 9; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * A set of custom labels supplied by user.
     * 
* * map<string, string> labels = 9; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * A set of custom labels supplied by user.
     * 
* * map<string, string> labels = 9; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * A set of custom labels supplied by user.
     * 
* * map<string, string> labels = 9; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * A set of custom labels supplied by user.
     * 
* * map<string, string> labels = 9; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * A set of custom labels supplied by user.
     * 
* * map<string, string> labels = 9; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000100; return this; } /** * * *
     * A set of custom labels supplied by user.
     * 
* * map<string, string> labels = 9; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000100; return this; } private int state_ = 0; /** * * *
     * Output only. The current state of the Restore.
     * 
* * * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * Output only. The current state of the Restore.
     * 
* * * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Output only. The current state of the Restore.
     * 
* * * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.gkebackup.v1.Restore.State getState() { com.google.cloud.gkebackup.v1.Restore.State result = com.google.cloud.gkebackup.v1.Restore.State.forNumber(state_); return result == null ? com.google.cloud.gkebackup.v1.Restore.State.UNRECOGNIZED : result; } /** * * *
     * Output only. The current state of the Restore.
     * 
* * * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.gkebackup.v1.Restore.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. The current state of the Restore.
     * 
* * * .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000200); state_ = 0; onChanged(); return this; } private java.lang.Object stateReason_ = ""; /** * * *
     * Output only. Human-readable description of why the Restore is in its
     * current state.
     * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The stateReason. */ public java.lang.String getStateReason() { java.lang.Object ref = stateReason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateReason_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Human-readable description of why the Restore is in its
     * current state.
     * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for stateReason. */ public com.google.protobuf.ByteString getStateReasonBytes() { java.lang.Object ref = stateReason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stateReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Human-readable description of why the Restore is in its
     * current state.
     * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The stateReason to set. * @return This builder for chaining. */ public Builder setStateReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } stateReason_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Output only. Human-readable description of why the Restore is in its
     * current state.
     * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearStateReason() { stateReason_ = getDefaultInstance().getStateReason(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * * *
     * Output only. Human-readable description of why the Restore is in its
     * current state.
     * 
* * string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for stateReason to set. * @return This builder for chaining. */ public Builder setStateReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stateReason_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private com.google.protobuf.Timestamp completeTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completeTimeBuilder_; /** * * *
     * Output only. Timestamp of when the restore operation completed.
     * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the completeTime field is set. */ public boolean hasCompleteTime() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     * Output only. Timestamp of when the restore operation completed.
     * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The completeTime. */ public com.google.protobuf.Timestamp getCompleteTime() { if (completeTimeBuilder_ == null) { return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } else { return completeTimeBuilder_.getMessage(); } } /** * * *
     * Output only. Timestamp of when the restore operation completed.
     * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } completeTime_ = value; } else { completeTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Output only. Timestamp of when the restore operation completed.
     * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (completeTimeBuilder_ == null) { completeTime_ = builderForValue.build(); } else { completeTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Output only. Timestamp of when the restore operation completed.
     * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { if (completeTimeBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && completeTime_ != null && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCompleteTimeBuilder().mergeFrom(value); } else { completeTime_ = value; } } else { completeTimeBuilder_.mergeFrom(value); } if (completeTime_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * * *
     * Output only. Timestamp of when the restore operation completed.
     * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCompleteTime() { bitField0_ = (bitField0_ & ~0x00000800); completeTime_ = null; if (completeTimeBuilder_ != null) { completeTimeBuilder_.dispose(); completeTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Timestamp of when the restore operation completed.
     * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { bitField0_ |= 0x00000800; onChanged(); return getCompleteTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Timestamp of when the restore operation completed.
     * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { if (completeTimeBuilder_ != null) { return completeTimeBuilder_.getMessageOrBuilder(); } else { return completeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completeTime_; } } /** * * *
     * Output only. Timestamp of when the restore operation completed.
     * 
* * * .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCompleteTimeFieldBuilder() { if (completeTimeBuilder_ == null) { completeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCompleteTime(), getParentForChildren(), isClean()); completeTime_ = null; } return completeTimeBuilder_; } private int resourcesRestoredCount_; /** * * *
     * Output only. Number of resources restored during the restore execution.
     * 
* * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The resourcesRestoredCount. */ @java.lang.Override public int getResourcesRestoredCount() { return resourcesRestoredCount_; } /** * * *
     * Output only. Number of resources restored during the restore execution.
     * 
* * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The resourcesRestoredCount to set. * @return This builder for chaining. */ public Builder setResourcesRestoredCount(int value) { resourcesRestoredCount_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Output only. Number of resources restored during the restore execution.
     * 
* * int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearResourcesRestoredCount() { bitField0_ = (bitField0_ & ~0x00001000); resourcesRestoredCount_ = 0; onChanged(); return this; } private int resourcesExcludedCount_; /** * * *
     * Output only. Number of resources excluded during the restore execution.
     * 
* * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The resourcesExcludedCount. */ @java.lang.Override public int getResourcesExcludedCount() { return resourcesExcludedCount_; } /** * * *
     * Output only. Number of resources excluded during the restore execution.
     * 
* * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The resourcesExcludedCount to set. * @return This builder for chaining. */ public Builder setResourcesExcludedCount(int value) { resourcesExcludedCount_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * Output only. Number of resources excluded during the restore execution.
     * 
* * int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearResourcesExcludedCount() { bitField0_ = (bitField0_ & ~0x00002000); resourcesExcludedCount_ = 0; onChanged(); return this; } private int resourcesFailedCount_; /** * * *
     * Output only. Number of resources that failed to be restored during the
     * restore execution.
     * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The resourcesFailedCount. */ @java.lang.Override public int getResourcesFailedCount() { return resourcesFailedCount_; } /** * * *
     * Output only. Number of resources that failed to be restored during the
     * restore execution.
     * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The resourcesFailedCount to set. * @return This builder for chaining. */ public Builder setResourcesFailedCount(int value) { resourcesFailedCount_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** * * *
     * Output only. Number of resources that failed to be restored during the
     * restore execution.
     * 
* * int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearResourcesFailedCount() { bitField0_ = (bitField0_ & ~0x00004000); resourcesFailedCount_ = 0; onChanged(); return this; } private int volumesRestoredCount_; /** * * *
     * Output only. Number of volumes restored during the restore execution.
     * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The volumesRestoredCount. */ @java.lang.Override public int getVolumesRestoredCount() { return volumesRestoredCount_; } /** * * *
     * Output only. Number of volumes restored during the restore execution.
     * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The volumesRestoredCount to set. * @return This builder for chaining. */ public Builder setVolumesRestoredCount(int value) { volumesRestoredCount_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** * * *
     * Output only. Number of volumes restored during the restore execution.
     * 
* * int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearVolumesRestoredCount() { bitField0_ = (bitField0_ & ~0x00008000); volumesRestoredCount_ = 0; onChanged(); return this; } private java.lang.Object etag_ = ""; /** * * *
     * Output only. `etag` is used for optimistic concurrency control as a way to
     * help prevent simultaneous updates of a restore from overwriting each other.
     * It is strongly suggested that systems make use of the `etag` in the
     * read-modify-write cycle to perform restore updates in order to avoid
     * race conditions: An `etag` is returned in the response to `GetRestore`,
     * and systems are expected to put that etag in the request to
     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
     * applied to the same version of the resource.
     * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. `etag` is used for optimistic concurrency control as a way to
     * help prevent simultaneous updates of a restore from overwriting each other.
     * It is strongly suggested that systems make use of the `etag` in the
     * read-modify-write cycle to perform restore updates in order to avoid
     * race conditions: An `etag` is returned in the response to `GetRestore`,
     * and systems are expected to put that etag in the request to
     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
     * applied to the same version of the resource.
     * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. `etag` is used for optimistic concurrency control as a way to
     * help prevent simultaneous updates of a restore from overwriting each other.
     * It is strongly suggested that systems make use of the `etag` in the
     * read-modify-write cycle to perform restore updates in order to avoid
     * race conditions: An `etag` is returned in the response to `GetRestore`,
     * and systems are expected to put that etag in the request to
     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
     * applied to the same version of the resource.
     * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The etag to set. * @return This builder for chaining. */ public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** * * *
     * Output only. `etag` is used for optimistic concurrency control as a way to
     * help prevent simultaneous updates of a restore from overwriting each other.
     * It is strongly suggested that systems make use of the `etag` in the
     * read-modify-write cycle to perform restore updates in order to avoid
     * race conditions: An `etag` is returned in the response to `GetRestore`,
     * and systems are expected to put that etag in the request to
     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
     * applied to the same version of the resource.
     * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } /** * * *
     * Output only. `etag` is used for optimistic concurrency control as a way to
     * help prevent simultaneous updates of a restore from overwriting each other.
     * It is strongly suggested that systems make use of the `etag` in the
     * read-modify-write cycle to perform restore updates in order to avoid
     * race conditions: An `etag` is returned in the response to `GetRestore`,
     * and systems are expected to put that etag in the request to
     * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
     * applied to the same version of the resource.
     * 
* * string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for etag to set. * @return This builder for chaining. */ public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } private com.google.cloud.gkebackup.v1.Restore.Filter filter_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gkebackup.v1.Restore.Filter, com.google.cloud.gkebackup.v1.Restore.Filter.Builder, com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder> filterBuilder_; /** * * *
     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
     * scope of the restore will remain the same as defined in the `RestorePlan`.
     * If this is specified, and no resources are matched by the
     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
     * nothing will be restored. This filter can only be specified if the value of
     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
     * `MERGE_REPLACE_ON_CONFLICT`.
     * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the filter field is set. */ public boolean hasFilter() { return ((bitField0_ & 0x00020000) != 0); } /** * * *
     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
     * scope of the restore will remain the same as defined in the `RestorePlan`.
     * If this is specified, and no resources are matched by the
     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
     * nothing will be restored. This filter can only be specified if the value of
     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
     * `MERGE_REPLACE_ON_CONFLICT`.
     * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * * * @return The filter. */ public com.google.cloud.gkebackup.v1.Restore.Filter getFilter() { if (filterBuilder_ == null) { return filter_ == null ? com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance() : filter_; } else { return filterBuilder_.getMessage(); } } /** * * *
     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
     * scope of the restore will remain the same as defined in the `RestorePlan`.
     * If this is specified, and no resources are matched by the
     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
     * nothing will be restored. This filter can only be specified if the value of
     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
     * `MERGE_REPLACE_ON_CONFLICT`.
     * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder setFilter(com.google.cloud.gkebackup.v1.Restore.Filter value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } filter_ = value; } else { filterBuilder_.setMessage(value); } bitField0_ |= 0x00020000; onChanged(); return this; } /** * * *
     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
     * scope of the restore will remain the same as defined in the `RestorePlan`.
     * If this is specified, and no resources are matched by the
     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
     * nothing will be restored. This filter can only be specified if the value of
     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
     * `MERGE_REPLACE_ON_CONFLICT`.
     * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder setFilter(com.google.cloud.gkebackup.v1.Restore.Filter.Builder builderForValue) { if (filterBuilder_ == null) { filter_ = builderForValue.build(); } else { filterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; onChanged(); return this; } /** * * *
     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
     * scope of the restore will remain the same as defined in the `RestorePlan`.
     * If this is specified, and no resources are matched by the
     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
     * nothing will be restored. This filter can only be specified if the value of
     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
     * `MERGE_REPLACE_ON_CONFLICT`.
     * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeFilter(com.google.cloud.gkebackup.v1.Restore.Filter value) { if (filterBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0) && filter_ != null && filter_ != com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance()) { getFilterBuilder().mergeFrom(value); } else { filter_ = value; } } else { filterBuilder_.mergeFrom(value); } if (filter_ != null) { bitField0_ |= 0x00020000; onChanged(); } return this; } /** * * *
     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
     * scope of the restore will remain the same as defined in the `RestorePlan`.
     * If this is specified, and no resources are matched by the
     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
     * nothing will be restored. This filter can only be specified if the value of
     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
     * `MERGE_REPLACE_ON_CONFLICT`.
     * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearFilter() { bitField0_ = (bitField0_ & ~0x00020000); filter_ = null; if (filterBuilder_ != null) { filterBuilder_.dispose(); filterBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
     * scope of the restore will remain the same as defined in the `RestorePlan`.
     * If this is specified, and no resources are matched by the
     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
     * nothing will be restored. This filter can only be specified if the value of
     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
     * `MERGE_REPLACE_ON_CONFLICT`.
     * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.Restore.Filter.Builder getFilterBuilder() { bitField0_ |= 0x00020000; onChanged(); return getFilterFieldBuilder().getBuilder(); } /** * * *
     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
     * scope of the restore will remain the same as defined in the `RestorePlan`.
     * If this is specified, and no resources are matched by the
     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
     * nothing will be restored. This filter can only be specified if the value of
     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
     * `MERGE_REPLACE_ON_CONFLICT`.
     * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder getFilterOrBuilder() { if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { return filter_ == null ? com.google.cloud.gkebackup.v1.Restore.Filter.getDefaultInstance() : filter_; } } /** * * *
     * Optional. Immutable. Filters resources for `Restore`. If not specified, the
     * scope of the restore will remain the same as defined in the `RestorePlan`.
     * If this is specified, and no resources are matched by the
     * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
     * nothing will be restored. This filter can only be specified if the value of
     * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
     * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
     * `MERGE_REPLACE_ON_CONFLICT`.
     * 
* * * .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gkebackup.v1.Restore.Filter, com.google.cloud.gkebackup.v1.Restore.Filter.Builder, com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.gkebackup.v1.Restore.Filter, com.google.cloud.gkebackup.v1.Restore.Filter.Builder, com.google.cloud.gkebackup.v1.Restore.FilterOrBuilder>( getFilter(), getParentForChildren(), isClean()); filter_ = null; } return filterBuilder_; } private java.util.List volumeDataRestorePolicyOverrides_ = java.util.Collections.emptyList(); private void ensureVolumeDataRestorePolicyOverridesIsMutable() { if (!((bitField0_ & 0x00040000) != 0)) { volumeDataRestorePolicyOverrides_ = new java.util.ArrayList( volumeDataRestorePolicyOverrides_); bitField0_ |= 0x00040000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder> volumeDataRestorePolicyOverridesBuilder_; /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getVolumeDataRestorePolicyOverridesList() { if (volumeDataRestorePolicyOverridesBuilder_ == null) { return java.util.Collections.unmodifiableList(volumeDataRestorePolicyOverrides_); } else { return volumeDataRestorePolicyOverridesBuilder_.getMessageList(); } } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public int getVolumeDataRestorePolicyOverridesCount() { if (volumeDataRestorePolicyOverridesBuilder_ == null) { return volumeDataRestorePolicyOverrides_.size(); } else { return volumeDataRestorePolicyOverridesBuilder_.getCount(); } } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride getVolumeDataRestorePolicyOverrides(int index) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { return volumeDataRestorePolicyOverrides_.get(index); } else { return volumeDataRestorePolicyOverridesBuilder_.getMessage(index); } } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder setVolumeDataRestorePolicyOverrides( int index, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride value) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeDataRestorePolicyOverridesIsMutable(); volumeDataRestorePolicyOverrides_.set(index, value); onChanged(); } else { volumeDataRestorePolicyOverridesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder setVolumeDataRestorePolicyOverrides( int index, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder builderForValue) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { ensureVolumeDataRestorePolicyOverridesIsMutable(); volumeDataRestorePolicyOverrides_.set(index, builderForValue.build()); onChanged(); } else { volumeDataRestorePolicyOverridesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder addVolumeDataRestorePolicyOverrides( com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride value) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeDataRestorePolicyOverridesIsMutable(); volumeDataRestorePolicyOverrides_.add(value); onChanged(); } else { volumeDataRestorePolicyOverridesBuilder_.addMessage(value); } return this; } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder addVolumeDataRestorePolicyOverrides( int index, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride value) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeDataRestorePolicyOverridesIsMutable(); volumeDataRestorePolicyOverrides_.add(index, value); onChanged(); } else { volumeDataRestorePolicyOverridesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder addVolumeDataRestorePolicyOverrides( com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder builderForValue) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { ensureVolumeDataRestorePolicyOverridesIsMutable(); volumeDataRestorePolicyOverrides_.add(builderForValue.build()); onChanged(); } else { volumeDataRestorePolicyOverridesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder addVolumeDataRestorePolicyOverrides( int index, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder builderForValue) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { ensureVolumeDataRestorePolicyOverridesIsMutable(); volumeDataRestorePolicyOverrides_.add(index, builderForValue.build()); onChanged(); } else { volumeDataRestorePolicyOverridesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllVolumeDataRestorePolicyOverrides( java.lang.Iterable values) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { ensureVolumeDataRestorePolicyOverridesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, volumeDataRestorePolicyOverrides_); onChanged(); } else { volumeDataRestorePolicyOverridesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearVolumeDataRestorePolicyOverrides() { if (volumeDataRestorePolicyOverridesBuilder_ == null) { volumeDataRestorePolicyOverrides_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); } else { volumeDataRestorePolicyOverridesBuilder_.clear(); } return this; } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeVolumeDataRestorePolicyOverrides(int index) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { ensureVolumeDataRestorePolicyOverridesIsMutable(); volumeDataRestorePolicyOverrides_.remove(index); onChanged(); } else { volumeDataRestorePolicyOverridesBuilder_.remove(index); } return this; } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder getVolumeDataRestorePolicyOverridesBuilder(int index) { return getVolumeDataRestorePolicyOverridesFieldBuilder().getBuilder(index); } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder getVolumeDataRestorePolicyOverridesOrBuilder(int index) { if (volumeDataRestorePolicyOverridesBuilder_ == null) { return volumeDataRestorePolicyOverrides_.get(index); } else { return volumeDataRestorePolicyOverridesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< ? extends com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder> getVolumeDataRestorePolicyOverridesOrBuilderList() { if (volumeDataRestorePolicyOverridesBuilder_ != null) { return volumeDataRestorePolicyOverridesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumeDataRestorePolicyOverrides_); } } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder addVolumeDataRestorePolicyOverridesBuilder() { return getVolumeDataRestorePolicyOverridesFieldBuilder() .addBuilder( com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.getDefaultInstance()); } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder addVolumeDataRestorePolicyOverridesBuilder(int index) { return getVolumeDataRestorePolicyOverridesFieldBuilder() .addBuilder( index, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.getDefaultInstance()); } /** * * *
     * Optional. Immutable. Overrides the volume data restore policies selected in
     * the Restore Config for override-scoped resources.
     * 
* * * repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getVolumeDataRestorePolicyOverridesBuilderList() { return getVolumeDataRestorePolicyOverridesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder> getVolumeDataRestorePolicyOverridesFieldBuilder() { if (volumeDataRestorePolicyOverridesBuilder_ == null) { volumeDataRestorePolicyOverridesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride.Builder, com.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideOrBuilder>( volumeDataRestorePolicyOverrides_, ((bitField0_ & 0x00040000) != 0), getParentForChildren(), isClean()); volumeDataRestorePolicyOverrides_ = null; } return volumeDataRestorePolicyOverridesBuilder_; } @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.gkebackup.v1.Restore) } // @@protoc_insertion_point(class_scope:google.cloud.gkebackup.v1.Restore) private static final com.google.cloud.gkebackup.v1.Restore DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkebackup.v1.Restore(); } public static com.google.cloud.gkebackup.v1.Restore getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Restore 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.gkebackup.v1.Restore getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy