@java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (resourceType_
          != com.google.cloud.vertexai.api.GoogleDriveSource.ResourceId.ResourceType
              .RESOURCE_TYPE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, resourceType_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceId_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<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