Class Citation.Builder (3.47.0)

public static final class Citation.Builder extends GeneratedMessageV3.Builder<Citation.Builder> implements CitationOrBuilder

Source attributions for content.

Protobuf type google.cloud.aiplatform.v1beta1.Citation

Implements

CitationOrBuilder

Static 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
Overrides

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
Overrides

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
Overrides

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
Overrides

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
Overrides

getDefaultInstanceForType()

public Citation getDefaultInstanceForType()
Returns
Type Description
Citation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Citation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Citation.Builder
Overrides

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
Overrides

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 int

The 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
Overrides

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 String

The 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 ByteString

The 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
Overrides

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 int

The 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 String

The 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 ByteString

The 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
Overrides

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 String

The 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 ByteString

The bytes for uri to set.

Returns
Type Description
Citation.Builder

This builder for chaining.