Class Citation.Builder (3.40.0)

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

Source attributions for content.

Protobuf type google.cloud.aiplatform.v1.Citation

Implements

CitationOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Citation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Citation.Builder
Overrides

build()

public Citation build()
Returns
TypeDescription
Citation

buildPartial()

public Citation buildPartial()
Returns
TypeDescription
Citation

clear()

public Citation.Builder clear()
Returns
TypeDescription
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
TypeDescription
Citation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Citation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Citation.Builder
Overrides

clearLicense()

public Citation.Builder clearLicense()

Output only. License of the attribution.

string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Citation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Citation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Citation.Builder

This builder for chaining.

clone()

public Citation.Builder clone()
Returns
TypeDescription
Citation.Builder
Overrides

getDefaultInstanceForType()

public Citation getDefaultInstanceForType()
Returns
TypeDescription
Citation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndIndex()

public int getEndIndex()

Output only. End index into the content.

int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The endIndex.

getLicense()

public String getLicense()

Output only. License of the attribution.

string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The license.

getLicenseBytes()

public ByteString getLicenseBytes()

Output only. License of the attribution.

string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The startIndex.

getTitle()

public String getTitle()

Output only. Title of the attribution.

string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Output only. Title of the attribution.

string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Output only. Url reference of the attribution.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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
TypeDescription
boolean

Whether the publicationDate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Citation other)

public Citation.Builder mergeFrom(Citation other)
Parameter
NameDescription
otherCitation
Returns
TypeDescription
Citation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Citation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Citation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Citation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
Citation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Citation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The endIndex to set.

Returns
TypeDescription
Citation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Citation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The license to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for license to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
Citation.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Citation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The startIndex to set.

Returns
TypeDescription
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
NameDescription
valueString

The title to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
Citation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Citation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The uri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
Citation.Builder

This builder for chaining.