Class GetDataSourceRequest.Builder (2.32.0)

public static final class GetDataSourceRequest.Builder extends GeneratedMessageV3.Builder<GetDataSourceRequest.Builder> implements GetDataSourceRequestOrBuilder

A request to get data source info.

Protobuf type google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetDataSourceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides

build()

public GetDataSourceRequest build()
Returns
TypeDescription
GetDataSourceRequest

buildPartial()

public GetDataSourceRequest buildPartial()
Returns
TypeDescription
GetDataSourceRequest

clear()

public GetDataSourceRequest.Builder clear()
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetDataSourceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides

clearName()

public GetDataSourceRequest.Builder clearName()

Required. The field will contain name of the resource requested, for example: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetDataSourceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetDataSourceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides

clone()

public GetDataSourceRequest.Builder clone()
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides

getDefaultInstanceForType()

public GetDataSourceRequest getDefaultInstanceForType()
Returns
TypeDescription
GetDataSourceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The field will contain name of the resource requested, for example: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The field will contain name of the resource requested, for example: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetDataSourceRequest other)

public GetDataSourceRequest.Builder mergeFrom(GetDataSourceRequest other)
Parameter
NameDescription
otherGetDataSourceRequest
Returns
TypeDescription
GetDataSourceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetDataSourceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetDataSourceRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetDataSourceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetDataSourceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides

setName(String value)

public GetDataSourceRequest.Builder setName(String value)

Required. The field will contain name of the resource requested, for example: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetDataSourceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetDataSourceRequest.Builder setNameBytes(ByteString value)

Required. The field will contain name of the resource requested, for example: projects/{project_id}/dataSources/{data_source_id} or projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetDataSourceRequest.Builder

This builder for chaining.

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

public GetDataSourceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetDataSourceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetDataSourceRequest.Builder
Overrides