Enum GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source
java.lang.Object
java.lang.Enum<GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source>
com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source>
public static enum GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source
extends Enum<GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source>
implements com.google.protobuf.ProtocolMessageEnum
Describes the source to which the metadata is associated to.Protobuf enum
google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGoogle Maps.Google Search.User inline provided content.Unspecified source.Vertex AI search. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intGoogle Maps.static final intGoogle Search.static final intUser inline provided content.static final intUnspecified source.static final intVertex AI search. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SOURCE_UNSPECIFIED
public static final GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source SOURCE_UNSPECIFIEDUnspecified source.
SOURCE_UNSPECIFIED = 0; -
VERTEX_AI_SEARCH
public static final GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source VERTEX_AI_SEARCHVertex AI search.
VERTEX_AI_SEARCH = 1; -
GOOGLE_SEARCH
public static final GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source GOOGLE_SEARCHGoogle Search.
GOOGLE_SEARCH = 3; -
INLINE_CONTENT
public static final GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source INLINE_CONTENTUser inline provided content.
INLINE_CONTENT = 2; -
GOOGLE_MAPS
public static final GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source GOOGLE_MAPSGoogle Maps.
GOOGLE_MAPS = 4; -
UNRECOGNIZED
public static final GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source UNRECOGNIZED
-
-
Field Details
-
SOURCE_UNSPECIFIED_VALUE
public static final int SOURCE_UNSPECIFIED_VALUEUnspecified source.
SOURCE_UNSPECIFIED = 0;- See Also:
-
VERTEX_AI_SEARCH_VALUE
public static final int VERTEX_AI_SEARCH_VALUEVertex AI search.
VERTEX_AI_SEARCH = 1;- See Also:
-
GOOGLE_SEARCH_VALUE
public static final int GOOGLE_SEARCH_VALUEGoogle Search.
GOOGLE_SEARCH = 3;- See Also:
-
INLINE_CONTENT_VALUE
public static final int INLINE_CONTENT_VALUEUser inline provided content.
INLINE_CONTENT = 2;- See Also:
-
GOOGLE_MAPS_VALUE
public static final int GOOGLE_MAPS_VALUEGoogle Maps.
GOOGLE_MAPS = 4;- See Also:
-
-
Method Details
-
values
public static GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source[] values()Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source valueOf(int value) Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source forNumber(int value) - Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-