Class AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder>
com.google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder
- All Implemented Interfaces:
AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
public static final class AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder>
implements AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder
Document metadata.Protobuf type
google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Document resource name.Domain name from the document URI.Page identifier.Title.clearUri()URI for the document.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDocument resource name.com.google.protobuf.ByteStringDocument resource name.Domain name from the document URI.com.google.protobuf.ByteStringDomain name from the document URI.Page identifier.com.google.protobuf.ByteStringPage identifier.getTitle()Title.com.google.protobuf.ByteStringTitle.getUri()URI for the document.com.google.protobuf.ByteStringURI for the document.booleanDocument resource name.booleanDomain name from the document URI.booleanPage identifier.booleanhasTitle()Title.booleanhasUri()URI for the document.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDocument(String value) Document resource name.setDocumentBytes(com.google.protobuf.ByteString value) Document resource name.Domain name from the document URI.setDomainBytes(com.google.protobuf.ByteString value) Domain name from the document URI.setPageIdentifier(String value) Page identifier.setPageIdentifierBytes(com.google.protobuf.ByteString value) Page identifier.Title.setTitleBytes(com.google.protobuf.ByteString value) Title.URI for the document.setUriBytes(com.google.protobuf.ByteString value) URI for the document.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<AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.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<AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.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<AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder>
-
getDefaultInstanceForType
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata 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
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder>
-
mergeFrom
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.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<AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder>- Throws:
IOException
-
hasDocument
public boolean hasDocument()Document resource name.
optional string document = 1 [(.google.api.resource_reference) = { ... }- Specified by:
hasDocumentin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- Whether the document field is set.
-
getDocument
Document resource name.
optional string document = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getDocumentin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- The document.
-
getDocumentBytes
public com.google.protobuf.ByteString getDocumentBytes()Document resource name.
optional string document = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getDocumentBytesin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- The bytes for document.
-
setDocument
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder setDocument(String value) Document resource name.
optional string document = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The document to set.- Returns:
- This builder for chaining.
-
clearDocument
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder clearDocument()Document resource name.
optional string document = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setDocumentBytes
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder setDocumentBytes(com.google.protobuf.ByteString value) Document resource name.
optional string document = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for document to set.- Returns:
- This builder for chaining.
-
hasUri
public boolean hasUri()URI for the document. It may contain a URL that redirects to the actual website.
optional string uri = 2;- Specified by:
hasUriin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
URI for the document. It may contain a URL that redirects to the actual website.
optional string uri = 2;- Specified by:
getUriin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()URI for the document. It may contain a URL that redirects to the actual website.
optional string uri = 2;- Specified by:
getUriBytesin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- The bytes for uri.
-
setUri
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder setUri(String value) URI for the document. It may contain a URL that redirects to the actual website.
optional string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
URI for the document. It may contain a URL that redirects to the actual website.
optional string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder setUriBytes(com.google.protobuf.ByteString value) URI for the document. It may contain a URL that redirects to the actual website.
optional string uri = 2;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasTitle
public boolean hasTitle()Title.
optional string title = 3;- Specified by:
hasTitlein interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- Whether the title field is set.
-
getTitle
Title.
optional string title = 3;- Specified by:
getTitlein interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Title.
optional string title = 3;- Specified by:
getTitleBytesin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- The bytes for title.
-
setTitle
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder setTitle(String value) Title.
optional string title = 3;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder clearTitle()Title.
optional string title = 3;- Returns:
- This builder for chaining.
-
setTitleBytes
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder setTitleBytes(com.google.protobuf.ByteString value) Title.
optional string title = 3;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
hasPageIdentifier
public boolean hasPageIdentifier()Page identifier.
optional string page_identifier = 4;- Specified by:
hasPageIdentifierin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- Whether the pageIdentifier field is set.
-
getPageIdentifier
Page identifier.
optional string page_identifier = 4;- Specified by:
getPageIdentifierin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- The pageIdentifier.
-
getPageIdentifierBytes
public com.google.protobuf.ByteString getPageIdentifierBytes()Page identifier.
optional string page_identifier = 4;- Specified by:
getPageIdentifierBytesin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- The bytes for pageIdentifier.
-
setPageIdentifier
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder setPageIdentifier(String value) Page identifier.
optional string page_identifier = 4;- Parameters:
value- The pageIdentifier to set.- Returns:
- This builder for chaining.
-
clearPageIdentifier
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder clearPageIdentifier()Page identifier.
optional string page_identifier = 4;- Returns:
- This builder for chaining.
-
setPageIdentifierBytes
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) Page identifier.
optional string page_identifier = 4;- Parameters:
value- The bytes for pageIdentifier to set.- Returns:
- This builder for chaining.
-
hasDomain
public boolean hasDomain()Domain name from the document URI. Note that the `uri` field may contain a URL that redirects to the actual website, in which case this will contain the domain name of the target site.
optional string domain = 5;- Specified by:
hasDomainin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- Whether the domain field is set.
-
getDomain
Domain name from the document URI. Note that the `uri` field may contain a URL that redirects to the actual website, in which case this will contain the domain name of the target site.
optional string domain = 5;- Specified by:
getDomainin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.ByteString getDomainBytes()Domain name from the document URI. Note that the `uri` field may contain a URL that redirects to the actual website, in which case this will contain the domain name of the target site.
optional string domain = 5;- Specified by:
getDomainBytesin interfaceAssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadataOrBuilder- Returns:
- The bytes for domain.
-
setDomain
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder setDomain(String value) Domain name from the document URI. Note that the `uri` field may contain a URL that redirects to the actual website, in which case this will contain the domain name of the target site.
optional string domain = 5;- Parameters:
value- The domain to set.- Returns:
- This builder for chaining.
-
clearDomain
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder clearDomain()Domain name from the document URI. Note that the `uri` field may contain a URL that redirects to the actual website, in which case this will contain the domain name of the target site.
optional string domain = 5;- Returns:
- This builder for chaining.
-
setDomainBytes
public AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Builder setDomainBytes(com.google.protobuf.ByteString value) Domain name from the document URI. Note that the `uri` field may contain a URL that redirects to the actual website, in which case this will contain the domain name of the target site.
optional string domain = 5;- Parameters:
value- The bytes for domain to set.- Returns:
- This builder for chaining.
-