public static final class Citation.Builder extends GeneratedMessage.Builder<Citation.Builder> implements CitationOrBuilderSource attributions for content.
Protobuf type google.cloud.vertexai.v1.Citation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Citation.BuilderImplements
CitationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Citation build()| Returns | |
|---|---|
| Type | Description |
Citation |
|
buildPartial()
public Citation buildPartial()| Returns | |
|---|---|
| Type | Description |
Citation |
|
clear()
public Citation.Builder clear()| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
clearEndIndex()
public Citation.Builder clearEndIndex()Output only. End index into the content.
int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
clearLicense()
public Citation.Builder clearLicense()Output only. License of the attribution.
string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
clearPublicationDate()
public Citation.Builder clearPublicationDate()Output only. Publication date of the attribution.
.google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
clearStartIndex()
public Citation.Builder clearStartIndex()Output only. Start index into the content.
int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
clearTitle()
public Citation.Builder clearTitle()Output only. Title of the attribution.
string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
clearUri()
public Citation.Builder clearUri()Output only. Url reference of the attribution.
string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Citation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Citation |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndIndex()
public int getEndIndex()Output only. End index into the content.
int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The endIndex. |
getLicense()
public String getLicense()Output only. License of the attribution.
string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The license. |
getLicenseBytes()
public ByteString getLicenseBytes()Output only. License of the attribution.
string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for license. |
getPublicationDate()
public Date getPublicationDate()Output only. Publication date of the attribution.
.google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The publicationDate. |
getPublicationDateBuilder()
public Date.Builder getPublicationDateBuilder()Output only. Publication date of the attribution.
.google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getPublicationDateOrBuilder()
public DateOrBuilder getPublicationDateOrBuilder()Output only. Publication date of the attribution.
.google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getStartIndex()
public int getStartIndex()Output only. Start index into the content.
int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The startIndex. |
getTitle()
public String getTitle()Output only. Title of the attribution.
string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The title. |
getTitleBytes()
public ByteString getTitleBytes()Output only. Title of the attribution.
string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for title. |
getUri()
public String getUri()Output only. Url reference of the attribution.
string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
public ByteString getUriBytes()Output only. Url reference of the attribution.
string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
hasPublicationDate()
public boolean hasPublicationDate()Output only. Publication date of the attribution.
.google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the publicationDate field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Citation other)
public Citation.Builder mergeFrom(Citation other)| Parameter | |
|---|---|
| Name | Description |
other |
Citation |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Citation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Citation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
mergePublicationDate(Date value)
public Citation.Builder mergePublicationDate(Date value)Output only. Publication date of the attribution.
.google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
setEndIndex(int value)
public Citation.Builder setEndIndex(int value)Output only. End index into the content.
int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe endIndex to set. |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
setLicense(String value)
public Citation.Builder setLicense(String value)Output only. License of the attribution.
string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe license to set. |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
setLicenseBytes(ByteString value)
public Citation.Builder setLicenseBytes(ByteString value)Output only. License of the attribution.
string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for license to set. |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
setPublicationDate(Date value)
public Citation.Builder setPublicationDate(Date value)Output only. Publication date of the attribution.
.google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
setPublicationDate(Date.Builder builderForValue)
public Citation.Builder setPublicationDate(Date.Builder builderForValue)Output only. Publication date of the attribution.
.google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
setStartIndex(int value)
public Citation.Builder setStartIndex(int value)Output only. Start index into the content.
int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe startIndex to set. |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
setTitle(String value)
public Citation.Builder setTitle(String value)Output only. Title of the attribution.
string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe title to set. |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
setTitleBytes(ByteString value)
public Citation.Builder setTitleBytes(ByteString value)Output only. Title of the attribution.
string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for title to set. |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
setUri(String value)
public Citation.Builder setUri(String value)Output only. Url reference of the attribution.
string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uri to set. |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
public Citation.Builder setUriBytes(ByteString value)Output only. Url reference of the attribution.
string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
This builder for chaining. |