@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (resourceType_
          != com.google.cloud.vertexai.api.GoogleDriveSource.ResourceId.ResourceType
              .RESOURCE_TYPE_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(1, resourceType_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceId_);
      }
      getUnknownFields().writeTo(output);
    }
<pre>
Required. The ID of the Google Drive resource.
</pre>

<code>string resource_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>

@return The bytes for resourceId.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleDriveSource.java