Class DataSourceGcpResourceInfo.Builder (0.33.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass DataSourceGcpResourceInfo.BuilderextendsGeneratedMessageV3.Builder<DataSourceGcpResourceInfo.Builder>implementsDataSourceGcpResourceInfoOrBuilderThe GCP resource that the DataSource is associated with.
Protobuf type google.cloud.backupdr.v1.DataSourceGcpResourceInfo
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DataSourceGcpResourceInfo.BuilderImplements
DataSourceGcpResourceInfoOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicDataSourceGcpResourceInfo.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
build()
publicDataSourceGcpResourceInfobuild()| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo |
|
buildPartial()
publicDataSourceGcpResourceInfobuildPartial()| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo |
|
clear()
publicDataSourceGcpResourceInfo.Builderclear()| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
clearCloudSqlInstanceProperties()
publicDataSourceGcpResourceInfo.BuilderclearCloudSqlInstanceProperties()Output only. The properties of the Cloud SQL instance.
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicDataSourceGcpResourceInfo.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
clearGcpResourcename()
publicDataSourceGcpResourceInfo.BuilderclearGcpResourcename()Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}
string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
This builder for chaining. |
clearLocation()
publicDataSourceGcpResourceInfo.BuilderclearLocation()Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"
string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicDataSourceGcpResourceInfo.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
clearResourceProperties()
publicDataSourceGcpResourceInfo.BuilderclearResourceProperties()| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
clearType()
publicDataSourceGcpResourceInfo.BuilderclearType()Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance
string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
This builder for chaining. |
clone()
publicDataSourceGcpResourceInfo.Builderclone()| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
getCloudSqlInstanceProperties()
publicCloudSqlInstanceDataSourceReferencePropertiesgetCloudSqlInstanceProperties()Output only. The properties of the Cloud SQL instance.
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CloudSqlInstanceDataSourceReferenceProperties |
The cloudSqlInstanceProperties. |
getCloudSqlInstancePropertiesBuilder()
publicCloudSqlInstanceDataSourceReferenceProperties.BuildergetCloudSqlInstancePropertiesBuilder()Output only. The properties of the Cloud SQL instance.
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CloudSqlInstanceDataSourceReferenceProperties.Builder |
|
getCloudSqlInstancePropertiesOrBuilder()
publicCloudSqlInstanceDataSourceReferencePropertiesOrBuildergetCloudSqlInstancePropertiesOrBuilder()Output only. The properties of the Cloud SQL instance.
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CloudSqlInstanceDataSourceReferencePropertiesOrBuilder |
|
getDefaultInstanceForType()
publicDataSourceGcpResourceInfogetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGcpResourcename()
publicStringgetGcpResourcename()Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}
string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The gcpResourcename. |
getGcpResourcenameBytes()
publicByteStringgetGcpResourcenameBytes()Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}
string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gcpResourcename. |
getLocation()
publicStringgetLocation()Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"
string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The location. |
getLocationBytes()
publicByteStringgetLocationBytes()Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"
string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for location. |
getResourcePropertiesCase()
publicDataSourceGcpResourceInfo.ResourcePropertiesCasegetResourcePropertiesCase()| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.ResourcePropertiesCase |
|
getType()
publicStringgetType()Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance
string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes()
publicByteStringgetTypeBytes()Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance
string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
hasCloudSqlInstanceProperties()
publicbooleanhasCloudSqlInstanceProperties()Output only. The properties of the Cloud SQL instance.
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the cloudSqlInstanceProperties field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties value)
publicDataSourceGcpResourceInfo.BuildermergeCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferencePropertiesvalue)Output only. The properties of the Cloud SQL instance.
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
CloudSqlInstanceDataSourceReferenceProperties |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
mergeFrom(DataSourceGcpResourceInfo other)
publicDataSourceGcpResourceInfo.BuildermergeFrom(DataSourceGcpResourceInfoother)| Parameter | |
|---|---|
| Name | Description |
other |
DataSourceGcpResourceInfo |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicDataSourceGcpResourceInfo.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicDataSourceGcpResourceInfo.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalDataSourceGcpResourceInfo.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
setCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties value)
publicDataSourceGcpResourceInfo.BuildersetCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferencePropertiesvalue)Output only. The properties of the Cloud SQL instance.
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
CloudSqlInstanceDataSourceReferenceProperties |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
setCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties.Builder builderForValue)
publicDataSourceGcpResourceInfo.BuildersetCloudSqlInstanceProperties(CloudSqlInstanceDataSourceReferenceProperties.BuilderbuilderForValue)Output only. The properties of the Cloud SQL instance.
.google.cloud.backupdr.v1.CloudSqlInstanceDataSourceReferenceProperties cloud_sql_instance_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CloudSqlInstanceDataSourceReferenceProperties.Builder |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicDataSourceGcpResourceInfo.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
setGcpResourcename(String value)
publicDataSourceGcpResourceInfo.BuildersetGcpResourcename(Stringvalue)Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}
string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
String The gcpResourcename to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
This builder for chaining. |
setGcpResourcenameBytes(ByteString value)
publicDataSourceGcpResourceInfo.BuildersetGcpResourcenameBytes(ByteStringvalue)Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}
string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for gcpResourcename to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
This builder for chaining. |
setLocation(String value)
publicDataSourceGcpResourceInfo.BuildersetLocation(Stringvalue)Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"
string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
String The location to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
publicDataSourceGcpResourceInfo.BuildersetLocationBytes(ByteStringvalue)Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"
string location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for location to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicDataSourceGcpResourceInfo.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|
setType(String value)
publicDataSourceGcpResourceInfo.BuildersetType(Stringvalue)Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance
string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
String The type to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
publicDataSourceGcpResourceInfo.BuildersetTypeBytes(ByteStringvalue)Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance
string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalDataSourceGcpResourceInfo.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
DataSourceGcpResourceInfo.Builder |
|