Class DataSourceGcpResource.Builder (0.12.0)

public static final class DataSourceGcpResource.Builder extends GeneratedMessageV3.Builder<DataSourceGcpResource.Builder> implements DataSourceGcpResourceOrBuilder

DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource

Protobuf type google.cloud.backupdr.v1.DataSourceGcpResource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataSourceGcpResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSourceGcpResource.Builder
Overrides

build()

public DataSourceGcpResource build()
Returns
Type Description
DataSourceGcpResource

buildPartial()

public DataSourceGcpResource buildPartial()
Returns
Type Description
DataSourceGcpResource

clear()

public DataSourceGcpResource.Builder clear()
Returns
Type Description
DataSourceGcpResource.Builder
Overrides

clearComputeInstanceDatasourceProperties()

public DataSourceGcpResource.Builder clearComputeInstanceDatasourceProperties()

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;

Returns
Type Description
DataSourceGcpResource.Builder

clearField(Descriptors.FieldDescriptor field)

public DataSourceGcpResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataSourceGcpResource.Builder
Overrides

clearGcpResourceProperties()

public DataSourceGcpResource.Builder clearGcpResourceProperties()
Returns
Type Description
DataSourceGcpResource.Builder

clearGcpResourcename()

public DataSourceGcpResource.Builder clearGcpResourcename()

Output only. Full resource pathname URL of the source Google Cloud resource.

string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataSourceGcpResource.Builder

This builder for chaining.

clearLocation()

public DataSourceGcpResource.Builder clearLocation()

Location of the resource: <region>/<zone>/"global"/"unspecified".

string location = 2;

Returns
Type Description
DataSourceGcpResource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataSourceGcpResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataSourceGcpResource.Builder
Overrides

clearType()

public DataSourceGcpResource.Builder clearType()

The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.

string type = 3;

Returns
Type Description
DataSourceGcpResource.Builder

This builder for chaining.

clone()

public DataSourceGcpResource.Builder clone()
Returns
Type Description
DataSourceGcpResource.Builder
Overrides

getComputeInstanceDatasourceProperties()

public ComputeInstanceDataSourceProperties getComputeInstanceDatasourceProperties()

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;

Returns
Type Description
ComputeInstanceDataSourceProperties

The computeInstanceDatasourceProperties.

getComputeInstanceDatasourcePropertiesBuilder()

public ComputeInstanceDataSourceProperties.Builder getComputeInstanceDatasourcePropertiesBuilder()

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;

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

getComputeInstanceDatasourcePropertiesOrBuilder()

public ComputeInstanceDataSourcePropertiesOrBuilder getComputeInstanceDatasourcePropertiesOrBuilder()

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;

Returns
Type Description
ComputeInstanceDataSourcePropertiesOrBuilder

getDefaultInstanceForType()

public DataSourceGcpResource getDefaultInstanceForType()
Returns
Type Description
DataSourceGcpResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcpResourcePropertiesCase()

public DataSourceGcpResource.GcpResourcePropertiesCase getGcpResourcePropertiesCase()
Returns
Type Description
DataSourceGcpResource.GcpResourcePropertiesCase

getGcpResourcename()

public String getGcpResourcename()

Output only. Full resource pathname URL of the source Google Cloud resource.

string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The gcpResourcename.

getGcpResourcenameBytes()

public ByteString getGcpResourcenameBytes()

Output only. Full resource pathname URL of the source Google Cloud resource.

string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for gcpResourcename.

getLocation()

public String getLocation()

Location of the resource: <region>/<zone>/"global"/"unspecified".

string location = 2;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Location of the resource: <region>/<zone>/"global"/"unspecified".

string location = 2;

Returns
Type Description
ByteString

The bytes for location.

getType()

public String getType()

The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.

string type = 3;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.

string type = 3;

Returns
Type Description
ByteString

The bytes for type.

hasComputeInstanceDatasourceProperties()

public boolean hasComputeInstanceDatasourceProperties()

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;

Returns
Type Description
boolean

Whether the computeInstanceDatasourceProperties field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeComputeInstanceDatasourceProperties(ComputeInstanceDataSourceProperties value)

public DataSourceGcpResource.Builder mergeComputeInstanceDatasourceProperties(ComputeInstanceDataSourceProperties value)

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;

Parameter
Name Description
value ComputeInstanceDataSourceProperties
Returns
Type Description
DataSourceGcpResource.Builder

mergeFrom(DataSourceGcpResource other)

public DataSourceGcpResource.Builder mergeFrom(DataSourceGcpResource other)
Parameter
Name Description
other DataSourceGcpResource
Returns
Type Description
DataSourceGcpResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataSourceGcpResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSourceGcpResource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataSourceGcpResource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataSourceGcpResource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataSourceGcpResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSourceGcpResource.Builder
Overrides

setComputeInstanceDatasourceProperties(ComputeInstanceDataSourceProperties value)

public DataSourceGcpResource.Builder setComputeInstanceDatasourceProperties(ComputeInstanceDataSourceProperties value)

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;

Parameter
Name Description
value ComputeInstanceDataSourceProperties
Returns
Type Description
DataSourceGcpResource.Builder

setComputeInstanceDatasourceProperties(ComputeInstanceDataSourceProperties.Builder builderForValue)

public DataSourceGcpResource.Builder setComputeInstanceDatasourceProperties(ComputeInstanceDataSourceProperties.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ComputeInstanceDataSourceProperties.Builder
Returns
Type Description
DataSourceGcpResource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DataSourceGcpResource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSourceGcpResource.Builder
Overrides

setGcpResourcename(String value)

public DataSourceGcpResource.Builder setGcpResourcename(String value)

Output only. Full resource pathname URL of the source Google Cloud resource.

string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The gcpResourcename to set.

Returns
Type Description
DataSourceGcpResource.Builder

This builder for chaining.

setGcpResourcenameBytes(ByteString value)

public DataSourceGcpResource.Builder setGcpResourcenameBytes(ByteString value)

Output only. Full resource pathname URL of the source Google Cloud resource.

string gcp_resourcename = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for gcpResourcename to set.

Returns
Type Description
DataSourceGcpResource.Builder

This builder for chaining.

setLocation(String value)

public DataSourceGcpResource.Builder setLocation(String value)

Location of the resource: <region>/<zone>/"global"/"unspecified".

string location = 2;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
DataSourceGcpResource.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public DataSourceGcpResource.Builder setLocationBytes(ByteString value)

Location of the resource: <region>/<zone>/"global"/"unspecified".

string location = 2;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
DataSourceGcpResource.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataSourceGcpResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataSourceGcpResource.Builder
Overrides

setType(String value)

public DataSourceGcpResource.Builder setType(String value)

The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.

string type = 3;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
DataSourceGcpResource.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public DataSourceGcpResource.Builder setTypeBytes(ByteString value)

The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.

string type = 3;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
DataSourceGcpResource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataSourceGcpResource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSourceGcpResource.Builder
Overrides