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

com.google.cloud.backupdr.v1.DataSourceGcpResource Maven / Gradle / Ivy

There is a newer version: 0.8.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/backupdr/v1/backupvault.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.backupdr.v1;

/**
 *
 *
 * 
 * DataSourceGcpResource is used for protected resources that are Google Cloud
 * Resources. This name is easeier to understand than GcpResourceDataSource or
 * GcpDataSourceResource
 * 
* * Protobuf type {@code google.cloud.backupdr.v1.DataSourceGcpResource} */ public final class DataSourceGcpResource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.DataSourceGcpResource) DataSourceGcpResourceOrBuilder { private static final long serialVersionUID = 0L; // Use DataSourceGcpResource.newBuilder() to construct. private DataSourceGcpResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataSourceGcpResource() { gcpResourcename_ = ""; location_ = ""; type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataSourceGcpResource(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.backupdr.v1.BackupVaultProto .internal_static_google_cloud_backupdr_v1_DataSourceGcpResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.backupdr.v1.BackupVaultProto .internal_static_google_cloud_backupdr_v1_DataSourceGcpResource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.backupdr.v1.DataSourceGcpResource.class, com.google.cloud.backupdr.v1.DataSourceGcpResource.Builder.class); } private int gcpResourcePropertiesCase_ = 0; @SuppressWarnings("serial") private java.lang.Object gcpResourceProperties_; public enum GcpResourcePropertiesCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { COMPUTE_INSTANCE_DATASOURCE_PROPERTIES(4), GCPRESOURCEPROPERTIES_NOT_SET(0); private final int value; private GcpResourcePropertiesCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static GcpResourcePropertiesCase valueOf(int value) { return forNumber(value); } public static GcpResourcePropertiesCase forNumber(int value) { switch (value) { case 4: return COMPUTE_INSTANCE_DATASOURCE_PROPERTIES; case 0: return GCPRESOURCEPROPERTIES_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public GcpResourcePropertiesCase getGcpResourcePropertiesCase() { return GcpResourcePropertiesCase.forNumber(gcpResourcePropertiesCase_); } public static final int GCP_RESOURCENAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object gcpResourcename_ = ""; /** * * *
   * Output only. Full resource pathname URL of the source Google Cloud
   * resource.
   * 
* * string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The gcpResourcename. */ @java.lang.Override public java.lang.String getGcpResourcename() { java.lang.Object ref = gcpResourcename_; 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(); gcpResourcename_ = s; return s; } } /** * * *
   * Output only. Full resource pathname URL of the source Google Cloud
   * resource.
   * 
* * string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for gcpResourcename. */ @java.lang.Override public com.google.protobuf.ByteString getGcpResourcenameBytes() { java.lang.Object ref = gcpResourcename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpResourcename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCATION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** * * *
   * Location of the resource: <region>/<zone>/"global"/"unspecified".
   * 
* * string location = 2; * * @return The location. */ @java.lang.Override public java.lang.String getLocation() { java.lang.Object ref = location_; 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(); location_ = s; return s; } } /** * * *
   * Location of the resource: <region>/<zone>/"global"/"unspecified".
   * 
* * string location = 2; * * @return The bytes for location. */ @java.lang.Override public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** * * *
   * The type of the Google Cloud resource. Use the Unified Resource Type,
   * eg. compute.googleapis.com/Instance.
   * 
* * string type = 3; * * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** * * *
   * The type of the Google Cloud resource. Use the Unified Resource Type,
   * eg. compute.googleapis.com/Instance.
   * 
* * string type = 3; * * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPUTE_INSTANCE_DATASOURCE_PROPERTIES_FIELD_NUMBER = 4; /** * * *
   * ComputeInstanceDataSourceProperties has a subset of Compute Instance
   * properties that are useful at the Datasource level.
   * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * * * @return Whether the computeInstanceDatasourceProperties field is set. */ @java.lang.Override public boolean hasComputeInstanceDatasourceProperties() { return gcpResourcePropertiesCase_ == 4; } /** * * *
   * ComputeInstanceDataSourceProperties has a subset of Compute Instance
   * properties that are useful at the Datasource level.
   * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * * * @return The computeInstanceDatasourceProperties. */ @java.lang.Override public com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties getComputeInstanceDatasourceProperties() { if (gcpResourcePropertiesCase_ == 4) { return (com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties) gcpResourceProperties_; } return com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties.getDefaultInstance(); } /** * * *
   * ComputeInstanceDataSourceProperties has a subset of Compute Instance
   * properties that are useful at the Datasource level.
   * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * */ @java.lang.Override public com.google.cloud.backupdr.v1.ComputeInstanceDataSourcePropertiesOrBuilder getComputeInstanceDatasourcePropertiesOrBuilder() { if (gcpResourcePropertiesCase_ == 4) { return (com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties) gcpResourceProperties_; } return com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties.getDefaultInstance(); } 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(gcpResourcename_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcpResourcename_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); } if (gcpResourcePropertiesCase_ == 4) { output.writeMessage( 4, (com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties) gcpResourceProperties_); } 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(gcpResourcename_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gcpResourcename_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); } if (gcpResourcePropertiesCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties) gcpResourceProperties_); } 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.backupdr.v1.DataSourceGcpResource)) { return super.equals(obj); } com.google.cloud.backupdr.v1.DataSourceGcpResource other = (com.google.cloud.backupdr.v1.DataSourceGcpResource) obj; if (!getGcpResourcename().equals(other.getGcpResourcename())) return false; if (!getLocation().equals(other.getLocation())) return false; if (!getType().equals(other.getType())) return false; if (!getGcpResourcePropertiesCase().equals(other.getGcpResourcePropertiesCase())) return false; switch (gcpResourcePropertiesCase_) { case 4: if (!getComputeInstanceDatasourceProperties() .equals(other.getComputeInstanceDatasourceProperties())) return false; break; case 0: default: } 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) + GCP_RESOURCENAME_FIELD_NUMBER; hash = (53 * hash) + getGcpResourcename().hashCode(); hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); switch (gcpResourcePropertiesCase_) { case 4: hash = (37 * hash) + COMPUTE_INSTANCE_DATASOURCE_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getComputeInstanceDatasourceProperties().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.backupdr.v1.DataSourceGcpResource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.backupdr.v1.DataSourceGcpResource 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.backupdr.v1.DataSourceGcpResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.backupdr.v1.DataSourceGcpResource 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.backupdr.v1.DataSourceGcpResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.backupdr.v1.DataSourceGcpResource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.backupdr.v1.DataSourceGcpResource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.backupdr.v1.DataSourceGcpResource 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.backupdr.v1.DataSourceGcpResource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.backupdr.v1.DataSourceGcpResource 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.backupdr.v1.DataSourceGcpResource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.backupdr.v1.DataSourceGcpResource 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.backupdr.v1.DataSourceGcpResource 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; } /** * * *
   * DataSourceGcpResource is used for protected resources that are Google Cloud
   * Resources. This name is easeier to understand than GcpResourceDataSource or
   * GcpDataSourceResource
   * 
* * Protobuf type {@code google.cloud.backupdr.v1.DataSourceGcpResource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.DataSourceGcpResource) com.google.cloud.backupdr.v1.DataSourceGcpResourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.backupdr.v1.BackupVaultProto .internal_static_google_cloud_backupdr_v1_DataSourceGcpResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.backupdr.v1.BackupVaultProto .internal_static_google_cloud_backupdr_v1_DataSourceGcpResource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.backupdr.v1.DataSourceGcpResource.class, com.google.cloud.backupdr.v1.DataSourceGcpResource.Builder.class); } // Construct using com.google.cloud.backupdr.v1.DataSourceGcpResource.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; gcpResourcename_ = ""; location_ = ""; type_ = ""; if (computeInstanceDatasourcePropertiesBuilder_ != null) { computeInstanceDatasourcePropertiesBuilder_.clear(); } gcpResourcePropertiesCase_ = 0; gcpResourceProperties_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.backupdr.v1.BackupVaultProto .internal_static_google_cloud_backupdr_v1_DataSourceGcpResource_descriptor; } @java.lang.Override public com.google.cloud.backupdr.v1.DataSourceGcpResource getDefaultInstanceForType() { return com.google.cloud.backupdr.v1.DataSourceGcpResource.getDefaultInstance(); } @java.lang.Override public com.google.cloud.backupdr.v1.DataSourceGcpResource build() { com.google.cloud.backupdr.v1.DataSourceGcpResource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.backupdr.v1.DataSourceGcpResource buildPartial() { com.google.cloud.backupdr.v1.DataSourceGcpResource result = new com.google.cloud.backupdr.v1.DataSourceGcpResource(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.backupdr.v1.DataSourceGcpResource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.gcpResourcename_ = gcpResourcename_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.location_ = location_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = type_; } } private void buildPartialOneofs(com.google.cloud.backupdr.v1.DataSourceGcpResource result) { result.gcpResourcePropertiesCase_ = gcpResourcePropertiesCase_; result.gcpResourceProperties_ = this.gcpResourceProperties_; if (gcpResourcePropertiesCase_ == 4 && computeInstanceDatasourcePropertiesBuilder_ != null) { result.gcpResourceProperties_ = computeInstanceDatasourcePropertiesBuilder_.build(); } } @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.backupdr.v1.DataSourceGcpResource) { return mergeFrom((com.google.cloud.backupdr.v1.DataSourceGcpResource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.backupdr.v1.DataSourceGcpResource other) { if (other == com.google.cloud.backupdr.v1.DataSourceGcpResource.getDefaultInstance()) return this; if (!other.getGcpResourcename().isEmpty()) { gcpResourcename_ = other.gcpResourcename_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getLocation().isEmpty()) { location_ = other.location_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getGcpResourcePropertiesCase()) { case COMPUTE_INSTANCE_DATASOURCE_PROPERTIES: { mergeComputeInstanceDatasourceProperties( other.getComputeInstanceDatasourceProperties()); break; } case GCPRESOURCEPROPERTIES_NOT_SET: { break; } } 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: { gcpResourcename_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { location_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { type_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getComputeInstanceDatasourcePropertiesFieldBuilder().getBuilder(), extensionRegistry); gcpResourcePropertiesCase_ = 4; break; } // case 34 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 gcpResourcePropertiesCase_ = 0; private java.lang.Object gcpResourceProperties_; public GcpResourcePropertiesCase getGcpResourcePropertiesCase() { return GcpResourcePropertiesCase.forNumber(gcpResourcePropertiesCase_); } public Builder clearGcpResourceProperties() { gcpResourcePropertiesCase_ = 0; gcpResourceProperties_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object gcpResourcename_ = ""; /** * * *
     * Output only. Full resource pathname URL of the source Google Cloud
     * resource.
     * 
* * string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The gcpResourcename. */ public java.lang.String getGcpResourcename() { java.lang.Object ref = gcpResourcename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpResourcename_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Full resource pathname URL of the source Google Cloud
     * resource.
     * 
* * string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for gcpResourcename. */ public com.google.protobuf.ByteString getGcpResourcenameBytes() { java.lang.Object ref = gcpResourcename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpResourcename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Full resource pathname URL of the source Google Cloud
     * resource.
     * 
* * string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The gcpResourcename to set. * @return This builder for chaining. */ public Builder setGcpResourcename(java.lang.String value) { if (value == null) { throw new NullPointerException(); } gcpResourcename_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Output only. Full resource pathname URL of the source Google Cloud
     * resource.
     * 
* * string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearGcpResourcename() { gcpResourcename_ = getDefaultInstance().getGcpResourcename(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Output only. Full resource pathname URL of the source Google Cloud
     * resource.
     * 
* * string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for gcpResourcename to set. * @return This builder for chaining. */ public Builder setGcpResourcenameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gcpResourcename_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object location_ = ""; /** * * *
     * Location of the resource: <region>/<zone>/"global"/"unspecified".
     * 
* * string location = 2; * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Location of the resource: <region>/<zone>/"global"/"unspecified".
     * 
* * string location = 2; * * @return The bytes for location. */ public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Location of the resource: <region>/<zone>/"global"/"unspecified".
     * 
* * string location = 2; * * @param value The location to set. * @return This builder for chaining. */ public Builder setLocation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Location of the resource: <region>/<zone>/"global"/"unspecified".
     * 
* * string location = 2; * * @return This builder for chaining. */ public Builder clearLocation() { location_ = getDefaultInstance().getLocation(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Location of the resource: <region>/<zone>/"global"/"unspecified".
     * 
* * string location = 2; * * @param value The bytes for location to set. * @return This builder for chaining. */ public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object type_ = ""; /** * * *
     * The type of the Google Cloud resource. Use the Unified Resource Type,
     * eg. compute.googleapis.com/Instance.
     * 
* * string type = 3; * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The type of the Google Cloud resource. Use the Unified Resource Type,
     * eg. compute.googleapis.com/Instance.
     * 
* * string type = 3; * * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The type of the Google Cloud resource. Use the Unified Resource Type,
     * eg. compute.googleapis.com/Instance.
     * 
* * string type = 3; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The type of the Google Cloud resource. Use the Unified Resource Type,
     * eg. compute.googleapis.com/Instance.
     * 
* * string type = 3; * * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * The type of the Google Cloud resource. Use the Unified Resource Type,
     * eg. compute.googleapis.com/Instance.
     * 
* * string type = 3; * * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties, com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties.Builder, com.google.cloud.backupdr.v1.ComputeInstanceDataSourcePropertiesOrBuilder> computeInstanceDatasourcePropertiesBuilder_; /** * * *
     * ComputeInstanceDataSourceProperties has a subset of Compute Instance
     * properties that are useful at the Datasource level.
     * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * * * @return Whether the computeInstanceDatasourceProperties field is set. */ @java.lang.Override public boolean hasComputeInstanceDatasourceProperties() { return gcpResourcePropertiesCase_ == 4; } /** * * *
     * ComputeInstanceDataSourceProperties has a subset of Compute Instance
     * properties that are useful at the Datasource level.
     * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * * * @return The computeInstanceDatasourceProperties. */ @java.lang.Override public com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties getComputeInstanceDatasourceProperties() { if (computeInstanceDatasourcePropertiesBuilder_ == null) { if (gcpResourcePropertiesCase_ == 4) { return (com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties) gcpResourceProperties_; } return com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties .getDefaultInstance(); } else { if (gcpResourcePropertiesCase_ == 4) { return computeInstanceDatasourcePropertiesBuilder_.getMessage(); } return com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties .getDefaultInstance(); } } /** * * *
     * ComputeInstanceDataSourceProperties has a subset of Compute Instance
     * properties that are useful at the Datasource level.
     * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * */ public Builder setComputeInstanceDatasourceProperties( com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties value) { if (computeInstanceDatasourcePropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } gcpResourceProperties_ = value; onChanged(); } else { computeInstanceDatasourcePropertiesBuilder_.setMessage(value); } gcpResourcePropertiesCase_ = 4; return this; } /** * * *
     * ComputeInstanceDataSourceProperties has a subset of Compute Instance
     * properties that are useful at the Datasource level.
     * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * */ public Builder setComputeInstanceDatasourceProperties( com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties.Builder builderForValue) { if (computeInstanceDatasourcePropertiesBuilder_ == null) { gcpResourceProperties_ = builderForValue.build(); onChanged(); } else { computeInstanceDatasourcePropertiesBuilder_.setMessage(builderForValue.build()); } gcpResourcePropertiesCase_ = 4; return this; } /** * * *
     * ComputeInstanceDataSourceProperties has a subset of Compute Instance
     * properties that are useful at the Datasource level.
     * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * */ public Builder mergeComputeInstanceDatasourceProperties( com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties value) { if (computeInstanceDatasourcePropertiesBuilder_ == null) { if (gcpResourcePropertiesCase_ == 4 && gcpResourceProperties_ != com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties .getDefaultInstance()) { gcpResourceProperties_ = com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties.newBuilder( (com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties) gcpResourceProperties_) .mergeFrom(value) .buildPartial(); } else { gcpResourceProperties_ = value; } onChanged(); } else { if (gcpResourcePropertiesCase_ == 4) { computeInstanceDatasourcePropertiesBuilder_.mergeFrom(value); } else { computeInstanceDatasourcePropertiesBuilder_.setMessage(value); } } gcpResourcePropertiesCase_ = 4; return this; } /** * * *
     * ComputeInstanceDataSourceProperties has a subset of Compute Instance
     * properties that are useful at the Datasource level.
     * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * */ public Builder clearComputeInstanceDatasourceProperties() { if (computeInstanceDatasourcePropertiesBuilder_ == null) { if (gcpResourcePropertiesCase_ == 4) { gcpResourcePropertiesCase_ = 0; gcpResourceProperties_ = null; onChanged(); } } else { if (gcpResourcePropertiesCase_ == 4) { gcpResourcePropertiesCase_ = 0; gcpResourceProperties_ = null; } computeInstanceDatasourcePropertiesBuilder_.clear(); } return this; } /** * * *
     * ComputeInstanceDataSourceProperties has a subset of Compute Instance
     * properties that are useful at the Datasource level.
     * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * */ public com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties.Builder getComputeInstanceDatasourcePropertiesBuilder() { return getComputeInstanceDatasourcePropertiesFieldBuilder().getBuilder(); } /** * * *
     * ComputeInstanceDataSourceProperties has a subset of Compute Instance
     * properties that are useful at the Datasource level.
     * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * */ @java.lang.Override public com.google.cloud.backupdr.v1.ComputeInstanceDataSourcePropertiesOrBuilder getComputeInstanceDatasourcePropertiesOrBuilder() { if ((gcpResourcePropertiesCase_ == 4) && (computeInstanceDatasourcePropertiesBuilder_ != null)) { return computeInstanceDatasourcePropertiesBuilder_.getMessageOrBuilder(); } else { if (gcpResourcePropertiesCase_ == 4) { return (com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties) gcpResourceProperties_; } return com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties .getDefaultInstance(); } } /** * * *
     * ComputeInstanceDataSourceProperties has a subset of Compute Instance
     * properties that are useful at the Datasource level.
     * 
* * * .google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties compute_instance_datasource_properties = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties, com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties.Builder, com.google.cloud.backupdr.v1.ComputeInstanceDataSourcePropertiesOrBuilder> getComputeInstanceDatasourcePropertiesFieldBuilder() { if (computeInstanceDatasourcePropertiesBuilder_ == null) { if (!(gcpResourcePropertiesCase_ == 4)) { gcpResourceProperties_ = com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties.getDefaultInstance(); } computeInstanceDatasourcePropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties, com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties.Builder, com.google.cloud.backupdr.v1.ComputeInstanceDataSourcePropertiesOrBuilder>( (com.google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties) gcpResourceProperties_, getParentForChildren(), isClean()); gcpResourceProperties_ = null; } gcpResourcePropertiesCase_ = 4; onChanged(); return computeInstanceDatasourcePropertiesBuilder_; } @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.backupdr.v1.DataSourceGcpResource) } // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.DataSourceGcpResource) private static final com.google.cloud.backupdr.v1.DataSourceGcpResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.DataSourceGcpResource(); } public static com.google.cloud.backupdr.v1.DataSourceGcpResource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DataSourceGcpResource 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.backupdr.v1.DataSourceGcpResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy