Class StaticContent
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.generativeaiinference.model.Prediction
-
- com.oracle.bmc.generativeaiinference.model.StaticContent
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20231130") public final class StaticContent extends Prediction
Static predicted output content, such as the content of a text file that is being regenerated.
Note: Objects should always be created or deserialized using theStaticContent.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theStaticContent.Builder
, which maintain a set of all explicitly set fields calledStaticContent.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StaticContent.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.generativeaiinference.model.Prediction
Prediction.Type
-
-
Constructor Summary
Constructors Constructor Description StaticContent(List<TextContent> content)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StaticContent.Builder
builder()
Create a new builder.boolean
equals(Object o)
List<TextContent>
getContent()
The content that should be matched when generating a model response.int
hashCode()
StaticContent.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
StaticContent
@Deprecated public StaticContent(List<TextContent> content)
Deprecated.
-
-
Method Detail
-
builder
public static StaticContent.Builder builder()
Create a new builder.
-
toBuilder
public StaticContent.Builder toBuilder()
-
getContent
public List<TextContent> getContent()
The content that should be matched when generating a model response.If generated tokens would match this content, the entire model response can be returned much more quickly.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classPrediction
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classPrediction
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classPrediction
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPrediction
-
-