Package com.google.cloud.aiplatform.v1
Class SummarizationVerbosityInstance.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SummarizationVerbosityInstance.Builder>
com.google.cloud.aiplatform.v1.SummarizationVerbosityInstance.Builder
- All Implemented Interfaces:
SummarizationVerbosityInstanceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SummarizationVerbosityInstance
public static final class SummarizationVerbosityInstance.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SummarizationVerbosityInstance.Builder>
implements SummarizationVerbosityInstanceOrBuilder
Spec for summarization verbosity instance.Protobuf type
google.cloud.aiplatform.v1.SummarizationVerbosityInstance-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional.Required.Optional.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.booleanRequired.booleanOptional.booleanRequired.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setContext(String value) Required.setContextBytes(com.google.protobuf.ByteString value) Required.setInstruction(String value) Optional.setInstructionBytes(com.google.protobuf.ByteString value) Optional.setPrediction(String value) Required.setPredictionBytes(com.google.protobuf.ByteString value) Required.setReference(String value) Optional.setReferenceBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SummarizationVerbosityInstance.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SummarizationVerbosityInstance.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SummarizationVerbosityInstance.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SummarizationVerbosityInstance.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SummarizationVerbosityInstance.Builder>
-
mergeFrom
public SummarizationVerbosityInstance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SummarizationVerbosityInstance.Builder>- Throws:
IOException
-
hasPrediction
public boolean hasPrediction()Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasPredictionin interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- Whether the prediction field is set.
-
getPrediction
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPredictionin interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- The prediction.
-
getPredictionBytes
public com.google.protobuf.ByteString getPredictionBytes()Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPredictionBytesin interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- The bytes for prediction.
-
setPrediction
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The prediction to set.- Returns:
- This builder for chaining.
-
clearPrediction
Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setPredictionBytes
public SummarizationVerbosityInstance.Builder setPredictionBytes(com.google.protobuf.ByteString value) Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for prediction to set.- Returns:
- This builder for chaining.
-
hasReference
public boolean hasReference()Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasReferencein interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- Whether the reference field is set.
-
getReference
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReferencein interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- The reference.
-
getReferenceBytes
public com.google.protobuf.ByteString getReferenceBytes()Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReferenceBytesin interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- The bytes for reference.
-
setReference
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The reference to set.- Returns:
- This builder for chaining.
-
clearReference
Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setReferenceBytes
public SummarizationVerbosityInstance.Builder setReferenceBytes(com.google.protobuf.ByteString value) Optional. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for reference to set.- Returns:
- This builder for chaining.
-
hasContext
public boolean hasContext()Required. Text to be summarized.
optional string context = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasContextin interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- Whether the context field is set.
-
getContext
Required. Text to be summarized.
optional string context = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContextin interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- The context.
-
getContextBytes
public com.google.protobuf.ByteString getContextBytes()Required. Text to be summarized.
optional string context = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContextBytesin interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- The bytes for context.
-
setContext
Required. Text to be summarized.
optional string context = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The context to set.- Returns:
- This builder for chaining.
-
clearContext
Required. Text to be summarized.
optional string context = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setContextBytes
Required. Text to be summarized.
optional string context = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for context to set.- Returns:
- This builder for chaining.
-
hasInstruction
public boolean hasInstruction()Optional. Summarization prompt for LLM.
optional string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasInstructionin interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- Whether the instruction field is set.
-
getInstruction
Optional. Summarization prompt for LLM.
optional string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInstructionin interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- The instruction.
-
getInstructionBytes
public com.google.protobuf.ByteString getInstructionBytes()Optional. Summarization prompt for LLM.
optional string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInstructionBytesin interfaceSummarizationVerbosityInstanceOrBuilder- Returns:
- The bytes for instruction.
-
setInstruction
Optional. Summarization prompt for LLM.
optional string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The instruction to set.- Returns:
- This builder for chaining.
-
clearInstruction
Optional. Summarization prompt for LLM.
optional string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setInstructionBytes
public SummarizationVerbosityInstance.Builder setInstructionBytes(com.google.protobuf.ByteString value) Optional. Summarization prompt for LLM.
optional string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for instruction to set.- Returns:
- This builder for chaining.
-