Class Publication.Builder (2.2.9)

public static final class Publication.Builder extends GeneratedMessageV3.Builder<Publication.Builder> implements PublicationOrBuilder

Resource that represents a publication resource of a candidate.

Protobuf type google.cloud.talent.v4beta1.Publication

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAuthors(Iterable<String> values)

public Publication.Builder addAllAuthors(Iterable<String> values)

A list of author names. Number of characters allowed is 100.

repeated string authors = 1;

Parameter
Name Description
values Iterable<String>

The authors to add.

Returns
Type Description
Publication.Builder

This builder for chaining.

addAuthors(String value)

public Publication.Builder addAuthors(String value)

A list of author names. Number of characters allowed is 100.

repeated string authors = 1;

Parameter
Name Description
value String

The authors to add.

Returns
Type Description
Publication.Builder

This builder for chaining.

addAuthorsBytes(ByteString value)

public Publication.Builder addAuthorsBytes(ByteString value)

A list of author names. Number of characters allowed is 100.

repeated string authors = 1;

Parameter
Name Description
value ByteString

The bytes of the authors to add.

Returns
Type Description
Publication.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Publication.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Publication.Builder
Overrides

build()

public Publication build()
Returns
Type Description
Publication

buildPartial()

public Publication buildPartial()
Returns
Type Description
Publication

clear()

public Publication.Builder clear()
Returns
Type Description
Publication.Builder
Overrides

clearAuthors()

public Publication.Builder clearAuthors()

A list of author names. Number of characters allowed is 100.

repeated string authors = 1;

Returns
Type Description
Publication.Builder

This builder for chaining.

clearDescription()

public Publication.Builder clearDescription()

The description of the publication. Number of characters allowed is 100,000.

string description = 3;

Returns
Type Description
Publication.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Publication.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Publication.Builder
Overrides

clearIsbn()

public Publication.Builder clearIsbn()

ISBN number. Number of characters allowed is 100.

string isbn = 9;

Returns
Type Description
Publication.Builder

This builder for chaining.

clearJournal()

public Publication.Builder clearJournal()

The journal name of the publication. Number of characters allowed is 100.

string journal = 4;

Returns
Type Description
Publication.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Publication.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Publication.Builder
Overrides

clearPublicationDate()

public Publication.Builder clearPublicationDate()

The publication date.

.google.type.Date publication_date = 7;

Returns
Type Description
Publication.Builder

clearPublicationType()

public Publication.Builder clearPublicationType()

The publication type. Number of characters allowed is 100.

string publication_type = 8;

Returns
Type Description
Publication.Builder

This builder for chaining.

clearPublisher()

public Publication.Builder clearPublisher()

The publisher of the journal. Number of characters allowed is 100.

string publisher = 6;

Returns
Type Description
Publication.Builder

This builder for chaining.

clearTitle()

public Publication.Builder clearTitle()

The title of the publication. Number of characters allowed is 100.

string title = 2;

Returns
Type Description
Publication.Builder

This builder for chaining.

clearVolume()

public Publication.Builder clearVolume()

Volume number. Number of characters allowed is 100.

string volume = 5;

Returns
Type Description
Publication.Builder

This builder for chaining.

clone()

public Publication.Builder clone()
Returns
Type Description
Publication.Builder
Overrides

getAuthors(int index)

public String getAuthors(int index)

A list of author names. Number of characters allowed is 100.

repeated string authors = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The authors at the given index.

getAuthorsBytes(int index)

public ByteString getAuthorsBytes(int index)

A list of author names. Number of characters allowed is 100.

repeated string authors = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the authors at the given index.

getAuthorsCount()

public int getAuthorsCount()

A list of author names. Number of characters allowed is 100.

repeated string authors = 1;

Returns
Type Description
int

The count of authors.

getAuthorsList()

public ProtocolStringList getAuthorsList()

A list of author names. Number of characters allowed is 100.

repeated string authors = 1;

Returns
Type Description
ProtocolStringList

A list containing the authors.

getDefaultInstanceForType()

public Publication getDefaultInstanceForType()
Returns
Type Description
Publication

getDescription()

public String getDescription()

The description of the publication. Number of characters allowed is 100,000.

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the publication. Number of characters allowed is 100,000.

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getIsbn()

public String getIsbn()

ISBN number. Number of characters allowed is 100.

string isbn = 9;

Returns
Type Description
String

The isbn.

getIsbnBytes()

public ByteString getIsbnBytes()

ISBN number. Number of characters allowed is 100.

string isbn = 9;

Returns
Type Description
ByteString

The bytes for isbn.

getJournal()

public String getJournal()

The journal name of the publication. Number of characters allowed is 100.

string journal = 4;

Returns
Type Description
String

The journal.

getJournalBytes()

public ByteString getJournalBytes()

The journal name of the publication. Number of characters allowed is 100.

string journal = 4;

Returns
Type Description
ByteString

The bytes for journal.

getPublicationDate()

public Date getPublicationDate()

The publication date.

.google.type.Date publication_date = 7;

Returns
Type Description
com.google.type.Date

The publicationDate.

getPublicationDateBuilder()

public Date.Builder getPublicationDateBuilder()

The publication date.

.google.type.Date publication_date = 7;

Returns
Type Description
com.google.type.Date.Builder

getPublicationDateOrBuilder()

public DateOrBuilder getPublicationDateOrBuilder()

The publication date.

.google.type.Date publication_date = 7;

Returns
Type Description
com.google.type.DateOrBuilder

getPublicationType()

public String getPublicationType()

The publication type. Number of characters allowed is 100.

string publication_type = 8;

Returns
Type Description
String

The publicationType.

getPublicationTypeBytes()

public ByteString getPublicationTypeBytes()

The publication type. Number of characters allowed is 100.

string publication_type = 8;

Returns
Type Description
ByteString

The bytes for publicationType.

getPublisher()

public String getPublisher()

The publisher of the journal. Number of characters allowed is 100.

string publisher = 6;

Returns
Type Description
String

The publisher.

getPublisherBytes()

public ByteString getPublisherBytes()

The publisher of the journal. Number of characters allowed is 100.

string publisher = 6;

Returns
Type Description
ByteString

The bytes for publisher.

getTitle()

public String getTitle()

The title of the publication. Number of characters allowed is 100.

string title = 2;

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

The title of the publication. Number of characters allowed is 100.

string title = 2;

Returns
Type Description
ByteString

The bytes for title.

getVolume()

public String getVolume()

Volume number. Number of characters allowed is 100.

string volume = 5;

Returns
Type Description
String

The volume.

getVolumeBytes()

public ByteString getVolumeBytes()

Volume number. Number of characters allowed is 100.

string volume = 5;

Returns
Type Description
ByteString

The bytes for volume.

hasPublicationDate()

public boolean hasPublicationDate()

The publication date.

.google.type.Date publication_date = 7;

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(Publication other)

public Publication.Builder mergeFrom(Publication other)
Parameter
Name Description
other Publication
Returns
Type Description
Publication.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Publication.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Publication.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergePublicationDate(Date value)

public Publication.Builder mergePublicationDate(Date value)

The publication date.

.google.type.Date publication_date = 7;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
Publication.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Publication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Publication.Builder
Overrides

setAuthors(int index, String value)

public Publication.Builder setAuthors(int index, String value)

A list of author names. Number of characters allowed is 100.

repeated string authors = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The authors to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setDescription(String value)

public Publication.Builder setDescription(String value)

The description of the publication. Number of characters allowed is 100,000.

string description = 3;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Publication.Builder setDescriptionBytes(ByteString value)

The description of the publication. Number of characters allowed is 100,000.

string description = 3;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Publication.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Publication.Builder
Overrides

setIsbn(String value)

public Publication.Builder setIsbn(String value)

ISBN number. Number of characters allowed is 100.

string isbn = 9;

Parameter
Name Description
value String

The isbn to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setIsbnBytes(ByteString value)

public Publication.Builder setIsbnBytes(ByteString value)

ISBN number. Number of characters allowed is 100.

string isbn = 9;

Parameter
Name Description
value ByteString

The bytes for isbn to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setJournal(String value)

public Publication.Builder setJournal(String value)

The journal name of the publication. Number of characters allowed is 100.

string journal = 4;

Parameter
Name Description
value String

The journal to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setJournalBytes(ByteString value)

public Publication.Builder setJournalBytes(ByteString value)

The journal name of the publication. Number of characters allowed is 100.

string journal = 4;

Parameter
Name Description
value ByteString

The bytes for journal to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setPublicationDate(Date value)

public Publication.Builder setPublicationDate(Date value)

The publication date.

.google.type.Date publication_date = 7;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
Publication.Builder

setPublicationDate(Date.Builder builderForValue)

public Publication.Builder setPublicationDate(Date.Builder builderForValue)

The publication date.

.google.type.Date publication_date = 7;

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
Publication.Builder

setPublicationType(String value)

public Publication.Builder setPublicationType(String value)

The publication type. Number of characters allowed is 100.

string publication_type = 8;

Parameter
Name Description
value String

The publicationType to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setPublicationTypeBytes(ByteString value)

public Publication.Builder setPublicationTypeBytes(ByteString value)

The publication type. Number of characters allowed is 100.

string publication_type = 8;

Parameter
Name Description
value ByteString

The bytes for publicationType to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setPublisher(String value)

public Publication.Builder setPublisher(String value)

The publisher of the journal. Number of characters allowed is 100.

string publisher = 6;

Parameter
Name Description
value String

The publisher to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setPublisherBytes(ByteString value)

public Publication.Builder setPublisherBytes(ByteString value)

The publisher of the journal. Number of characters allowed is 100.

string publisher = 6;

Parameter
Name Description
value ByteString

The bytes for publisher to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

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

public Publication.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Publication.Builder
Overrides

setTitle(String value)

public Publication.Builder setTitle(String value)

The title of the publication. Number of characters allowed is 100.

string title = 2;

Parameter
Name Description
value String

The title to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Publication.Builder setTitleBytes(ByteString value)

The title of the publication. Number of characters allowed is 100.

string title = 2;

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Publication.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Publication.Builder
Overrides

setVolume(String value)

public Publication.Builder setVolume(String value)

Volume number. Number of characters allowed is 100.

string volume = 5;

Parameter
Name Description
value String

The volume to set.

Returns
Type Description
Publication.Builder

This builder for chaining.

setVolumeBytes(ByteString value)

public Publication.Builder setVolumeBytes(ByteString value)

Volume number. Number of characters allowed is 100.

string volume = 5;

Parameter
Name Description
value ByteString

The bytes for volume to set.

Returns
Type Description
Publication.Builder

This builder for chaining.