public final class Part extends GeneratedMessageV3 implements PartOrBuilder
   
   A datatype containing media that is part of a multi-part Content message.
 A Part consists of data which has an associated datatype. A Part can only
 contain one of the accepted types in Part.data.
 A Part must have a fixed IANA MIME type identifying the type and subtype
 of the media if inline_data or file_data field is filled with raw bytes.
 Protobuf type google.cloud.aiplatform.v1.Part
 
  
  
  
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
  
  
  
    public static final int FILE_DATA_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  
  
    public static final int FUNCTION_CALL_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  
  
    public static final int FUNCTION_RESPONSE_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  
  
    public static final int INLINE_DATA_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  TEXT_FIELD_NUMBER
  
    public static final int TEXT_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  
  
    public static final int VIDEO_METADATA_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  Static Methods
  
  
  
  
    public static Part getDefaultInstance()
   
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
    public static final Descriptors.Descriptor getDescriptor()
   
  
  
  
  
    public static Part.Builder newBuilder()
   
  
  
  
  
    public static Part.Builder newBuilder(Part prototype)
   
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        prototype | 
        Part
  | 
      
    
  
  
  
  
  
    public static Part parseDelimitedFrom(InputStream input)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseFrom(byte[] data)
   
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        data | 
        byte[]
  | 
      
    
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseFrom(ByteString data)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseFrom(CodedInputStream input)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseFrom(InputStream input)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseFrom(ByteBuffer data)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Part parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
  
    public static Parser<Part> parser()
   
  
  Methods
  
  
  
  
    public boolean equals(Object obj)
   
  
    
      
        | Parameter | 
      
      
        | Name | 
        Description | 
      
      
        obj | 
        Object
  | 
      
    
  
  
  Overrides
  
  
  
  
    public Part.DataCase getDataCase()
   
  
  
  
  
    public Part getDefaultInstanceForType()
   
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Part | 
         | 
      
    
  
  
  
  
    public FileData getFileData()
   
   Optional. URI based data.
 
 .google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        FileData | 
        The fileData. 
 | 
      
    
  
  
  
  
    public FileDataOrBuilder getFileDataOrBuilder()
   
   Optional. URI based data.
 
 .google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
  
  
  
    public FunctionCall getFunctionCall()
   
   Optional. A predicted [FunctionCall] returned from the model that
 contains a string representing the [FunctionDeclaration.name] with the
 parameters and their values.
 
 .google.cloud.aiplatform.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
  
  
  
    public FunctionCallOrBuilder getFunctionCallOrBuilder()
   
   Optional. A predicted [FunctionCall] returned from the model that
 contains a string representing the [FunctionDeclaration.name] with the
 parameters and their values.
 
 .google.cloud.aiplatform.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
  
  
  
    public FunctionResponse getFunctionResponse()
   
   Optional. The result output of a [FunctionCall] that contains a string
 representing the [FunctionDeclaration.name] and a structured JSON object
 containing any output from the function call. It is used as context to
 the model.
 
 .google.cloud.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
  
  
  
    public FunctionResponseOrBuilder getFunctionResponseOrBuilder()
   
   Optional. The result output of a [FunctionCall] that contains a string
 representing the [FunctionDeclaration.name] and a structured JSON object
 containing any output from the function call. It is used as context to
 the model.
 
 .google.cloud.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
  
  
  
    public Blob getInlineData()
   
   Optional. Inlined bytes data.
 
 .google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Blob | 
        The inlineData. 
 | 
      
    
  
  
  
  
    public BlobOrBuilder getInlineDataOrBuilder()
   
   Optional. Inlined bytes data.
 
 .google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
  
  
  
    public Part.MetadataCase getMetadataCase()
   
  
  
  
  
    public Parser<Part> getParserForType()
   
  
  Overrides
  
  
  
  
    public int getSerializedSize()
   
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  Overrides
  
  
  getText()
  
   Optional. Text part (can be code).
 string text = 1 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        String | 
        The text. 
 | 
      
    
  
  
  getTextBytes()
  
    public ByteString getTextBytes()
   
   Optional. Text part (can be code).
 string text = 1 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        ByteString | 
        The bytes for text. 
 | 
      
    
  
  
  
  
    public VideoMetadata getVideoMetadata()
   
   Optional. Video metadata. The metadata should only be specified while the
 video data is presented in inline_data or file_data.
 
 .google.cloud.aiplatform.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
  
  
  
    public VideoMetadataOrBuilder getVideoMetadataOrBuilder()
   
   Optional. Video metadata. The metadata should only be specified while the
 video data is presented in inline_data or file_data.
 
 .google.cloud.aiplatform.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
  
  
  
    public boolean hasFileData()
   
   Optional. URI based data.
 
 .google.cloud.aiplatform.v1.FileData file_data = 3 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        boolean | 
        Whether the fileData field is set. 
 | 
      
    
  
  
  
  
    public boolean hasFunctionCall()
   
   Optional. A predicted [FunctionCall] returned from the model that
 contains a string representing the [FunctionDeclaration.name] with the
 parameters and their values.
 
 .google.cloud.aiplatform.v1.FunctionCall function_call = 5 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        boolean | 
        Whether the functionCall field is set. 
 | 
      
    
  
  
  
  
    public boolean hasFunctionResponse()
   
   Optional. The result output of a [FunctionCall] that contains a string
 representing the [FunctionDeclaration.name] and a structured JSON object
 containing any output from the function call. It is used as context to
 the model.
 
 .google.cloud.aiplatform.v1.FunctionResponse function_response = 6 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        boolean | 
        Whether the functionResponse field is set. 
 | 
      
    
  
  
  
  
    public boolean hasInlineData()
   
   Optional. Inlined bytes data.
 
 .google.cloud.aiplatform.v1.Blob inline_data = 2 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        boolean | 
        Whether the inlineData field is set. 
 | 
      
    
  
  
  hasText()
  
   Optional. Text part (can be code).
 string text = 1 [(.google.api.field_behavior) = OPTIONAL];
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        boolean | 
        Whether the text field is set. 
 | 
      
    
  
  
  
  
    public boolean hasVideoMetadata()
   
   Optional. Video metadata. The metadata should only be specified while the
 video data is presented in inline_data or file_data.
 
 .google.cloud.aiplatform.v1.VideoMetadata video_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        boolean | 
        Whether the videoMetadata field is set. 
 | 
      
    
  
  
  
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        int | 
         | 
      
    
  
  Overrides
  
  
  
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  
  Overrides
  
  
  
  
    public final boolean isInitialized()
   
  
  Overrides
  
  
  
  
    public Part.Builder newBuilderForType()
   
  
  
  
  
    protected Part.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
   
  
  
  Overrides
  
  
  
  
    protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
   
  
  
    
      
        | Returns | 
      
      
        | Type | 
        Description | 
      
      
        Object | 
         | 
      
    
  
  Overrides
  
  
  
  
    public Part.Builder toBuilder()
   
  
  
  
  
    public void writeTo(CodedOutputStream output)
   
  
  Overrides