Send feedback
Class GoogleDriveSource.ResourceId.Builder (1.20.0)
Stay organized with collections
Save and categorize content based on your preferences.
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.vertexai.v1.GoogleDriveSource.ResourceId
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GoogleDriveSource . ResourceId . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public GoogleDriveSource . ResourceId build ()
buildPartial()
public GoogleDriveSource . ResourceId buildPartial ()
clear()
public GoogleDriveSource . ResourceId . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GoogleDriveSource . ResourceId . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GoogleDriveSource . ResourceId . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearResourceId()
public GoogleDriveSource . ResourceId . Builder clearResourceId ()
Required. The ID of the Google Drive resource.
string resource_id = 2 [(.google.api.field_behavior) = REQUIRED];
clearResourceType()
public GoogleDriveSource . ResourceId . Builder clearResourceType ()
Required. The type of the Google Drive resource.
.google.cloud.vertexai.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public GoogleDriveSource . ResourceId . Builder clone ()
Overrides
getDefaultInstanceForType()
public GoogleDriveSource . ResourceId getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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.vertexai.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
getResourceTypeValue()
public int getResourceTypeValue ()
Required. The type of the Google Drive resource.
.google.cloud.vertexai.v1.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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(GoogleDriveSource.ResourceId other)
public GoogleDriveSource . ResourceId . Builder mergeFrom ( GoogleDriveSource . ResourceId other )
public GoogleDriveSource . ResourceId . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public GoogleDriveSource . ResourceId . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GoogleDriveSource . ResourceId . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GoogleDriveSource . ResourceId . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GoogleDriveSource . ResourceId . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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.
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.
setResourceType(GoogleDriveSource.ResourceId.ResourceType value)
public GoogleDriveSource . ResourceId . Builder setResourceType ( GoogleDriveSource . ResourceId . ResourceType value )
Required. The type of the Google Drive resource.
.google.cloud.vertexai.v1.GoogleDriveSource.ResourceId.ResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED];
setResourceTypeValue(int value)
public GoogleDriveSource . ResourceId . Builder setResourceTypeValue ( int value )
Required. The type of the Google Drive resource.
.google.cloud.vertexai.v1.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.
setUnknownFields(UnknownFieldSet unknownFields)
public final GoogleDriveSource . ResourceId . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-22 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-22 UTC."],[],[]]