public static final class Citation.Builder extends GeneratedMessageV3.Builder<Citation.Builder> implements CitationOrBuilderSource attributions for content.
Protobuf type google.cloud.vertexai.v1.Citation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Citation.BuilderImplements
CitationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Citation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
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. |
clearField(Descriptors.FieldDescriptor field)
public Citation.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Citation.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
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. |
clone()
public Citation.Builder clone()| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
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 GeneratedMessageV3.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 |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Citation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| 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. |
setField(Descriptors.FieldDescriptor field, Object value)
public Citation.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
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 |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Citation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| 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. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Citation.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Citation.Builder |
|
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. |