Class GoogleDriveSource.ResourceId.Builder (3.52.0)

public static final class GoogleDriveSource.ResourceId.Builder extends GeneratedMessageV3.Builder<GoogleDriveSource.ResourceId.Builder> implements GoogleDriveSource.ResourceIdOrBuilder

The type and ID of the Google Drive resource.

Protobuf type google.cloud.aiplatform.v1beta1.GoogleDriveSource.ResourceId

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GoogleDriveSource.ResourceId build()
Returns
Type Description
GoogleDriveSource.ResourceId

buildPartial()

public GoogleDriveSource.ResourceId buildPartial()
Returns
Type Description
GoogleDriveSource.ResourceId

clear()

public GoogleDriveSource.ResourceId.Builder clear()
Returns
Type Description
GoogleDriveSource.ResourceId.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceId()

public GoogleDriveSource.ResourceId.Builder clearResourceId()

Required. The ID of the Google Drive resource.

string resource_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GoogleDriveSource.ResourceId.Builder

This builder for chaining.

clearResourceType()

public GoogleDriveSource.ResourceId.Builder clearResourceType()

Required. The type of the Google Drive resource.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GoogleDriveSource.ResourceId.Builder

This builder for chaining.

clone()

public GoogleDriveSource.ResourceId.Builder clone()
Returns
Type Description
GoogleDriveSource.ResourceId.Builder
Overrides

getDefaultInstanceForType()

public GoogleDriveSource.ResourceId getDefaultInstanceForType()
Returns
Type Description
GoogleDriveSource.ResourceId

getDescriptorForType()

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

getResourceId()

public String getResourceId()

Required. The ID of the Google Drive resource.

string resource_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The resourceId.

getResourceIdBytes()

public ByteString getResourceIdBytes()

Required. The ID of the Google Drive resource.

string resource_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for resourceId.

getResourceType()

public GoogleDriveSource.ResourceId.ResourceType getResourceType()

Required. The type of the Google Drive resource.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GoogleDriveSource.ResourceId.ResourceType

The resourceType.

getResourceTypeValue()

public int getResourceTypeValue()

Required. The type of the Google Drive resource.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for resourceType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GoogleDriveSource.ResourceId other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResourceId(String value)

public GoogleDriveSource.ResourceId.Builder setResourceId(String value)

Required. The ID of the Google Drive resource.

string resource_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The resourceId to set.

Returns
Type Description
GoogleDriveSource.ResourceId.Builder

This builder for chaining.

setResourceIdBytes(ByteString value)

public GoogleDriveSource.ResourceId.Builder setResourceIdBytes(ByteString value)

Required. The ID of the Google Drive resource.

string resource_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for resourceId to set.

Returns
Type Description
GoogleDriveSource.ResourceId.Builder

This builder for chaining.

setResourceType(GoogleDriveSource.ResourceId.ResourceType value)

public GoogleDriveSource.ResourceId.Builder setResourceType(GoogleDriveSource.ResourceId.ResourceType value)

Required. The type of the Google Drive resource.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GoogleDriveSource.ResourceId.ResourceType

The resourceType to set.

Returns
Type Description
GoogleDriveSource.ResourceId.Builder

This builder for chaining.

setResourceTypeValue(int value)

public GoogleDriveSource.ResourceId.Builder setResourceTypeValue(int value)

Required. The type of the Google Drive resource.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for resourceType to set.

Returns
Type Description
GoogleDriveSource.ResourceId.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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