Class ListLinkedTargetsResponse.Builder (0.2.0)

public static final class ListLinkedTargetsResponse.Builder extends GeneratedMessageV3.Builder<ListLinkedTargetsResponse.Builder> implements ListLinkedTargetsResponseOrBuilder

Response message for DocumentLinkService.ListLinkedTargets.

Protobuf type google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse

Static Methods

getDescriptor()

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

Methods

public ListLinkedTargetsResponse.Builder addAllDocumentLinks(Iterable<? extends DocumentLink> values)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.contentwarehouse.v1.DocumentLink>
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
public ListLinkedTargetsResponse.Builder addDocumentLinks(DocumentLink value)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameter
NameDescription
valueDocumentLink
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
public ListLinkedTargetsResponse.Builder addDocumentLinks(DocumentLink.Builder builderForValue)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameter
NameDescription
builderForValueDocumentLink.Builder
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
public ListLinkedTargetsResponse.Builder addDocumentLinks(int index, DocumentLink value)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameters
NameDescription
indexint
valueDocumentLink
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
public ListLinkedTargetsResponse.Builder addDocumentLinks(int index, DocumentLink.Builder builderForValue)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameters
NameDescription
indexint
builderForValueDocumentLink.Builder
Returns
TypeDescription
ListLinkedTargetsResponse.Builder

addDocumentLinksBuilder()

public DocumentLink.Builder addDocumentLinksBuilder()

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Returns
TypeDescription
DocumentLink.Builder

addDocumentLinksBuilder(int index)

public DocumentLink.Builder addDocumentLinksBuilder(int index)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentLink.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListLinkedTargetsResponse build()
Returns
TypeDescription
ListLinkedTargetsResponse

buildPartial()

public ListLinkedTargetsResponse buildPartial()
Returns
TypeDescription
ListLinkedTargetsResponse

clear()

public ListLinkedTargetsResponse.Builder clear()
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
Overrides
public ListLinkedTargetsResponse.Builder clearDocumentLinks()

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Returns
TypeDescription
ListLinkedTargetsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListLinkedTargetsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ListLinkedTargetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListLinkedTargetsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public ListLinkedTargetsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListLinkedTargetsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
public DocumentLink getDocumentLinks(int index)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentLink

getDocumentLinksBuilder(int index)

public DocumentLink.Builder getDocumentLinksBuilder(int index)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentLink.Builder

getDocumentLinksBuilderList()

public List<DocumentLink.Builder> getDocumentLinksBuilderList()

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Returns
TypeDescription
List<Builder>

getDocumentLinksCount()

public int getDocumentLinksCount()

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Returns
TypeDescription
int
public List<DocumentLink> getDocumentLinksList()

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Returns
TypeDescription
List<DocumentLink>

getDocumentLinksOrBuilder(int index)

public DocumentLinkOrBuilder getDocumentLinksOrBuilder(int index)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentLinkOrBuilder

getDocumentLinksOrBuilderList()

public List<? extends DocumentLinkOrBuilder> getDocumentLinksOrBuilderList()

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Returns
TypeDescription
List<? extends com.google.cloud.contentwarehouse.v1.DocumentLinkOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListLinkedTargetsResponse other)

public ListLinkedTargetsResponse.Builder mergeFrom(ListLinkedTargetsResponse other)
Parameter
NameDescription
otherListLinkedTargetsResponse
Returns
TypeDescription
ListLinkedTargetsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ListLinkedTargetsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListLinkedTargetsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
Overrides
public ListLinkedTargetsResponse.Builder removeDocumentLinks(int index)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
public ListLinkedTargetsResponse.Builder setDocumentLinks(int index, DocumentLink value)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameters
NameDescription
indexint
valueDocumentLink
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
public ListLinkedTargetsResponse.Builder setDocumentLinks(int index, DocumentLink.Builder builderForValue)

Target document-links.

repeated .google.cloud.contentwarehouse.v1.DocumentLink document_links = 1;

Parameters
NameDescription
indexint
builderForValueDocumentLink.Builder
Returns
TypeDescription
ListLinkedTargetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListLinkedTargetsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListLinkedTargetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListLinkedTargetsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListLinkedTargetsResponse.Builder

This builder for chaining.

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

public ListLinkedTargetsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListLinkedTargetsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListLinkedTargetsResponse.Builder
Overrides