Class ListSearchHypernymsResponse.Builder (0.10.0)

public static final class ListSearchHypernymsResponse.Builder extends GeneratedMessageV3.Builder<ListSearchHypernymsResponse.Builder> implements ListSearchHypernymsResponseOrBuilder

Response message for listing SearchHypernyms.

Protobuf type google.cloud.visionai.v1.ListSearchHypernymsResponse

Static Methods

getDescriptor()

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

Methods

addAllSearchHypernyms(Iterable<? extends SearchHypernym> values)

public ListSearchHypernymsResponse.Builder addAllSearchHypernyms(Iterable<? extends SearchHypernym> values)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.SearchHypernym>
Returns
Type Description
ListSearchHypernymsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSearchHypernyms(SearchHypernym value)

public ListSearchHypernymsResponse.Builder addSearchHypernyms(SearchHypernym value)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameter
Name Description
value SearchHypernym
Returns
Type Description
ListSearchHypernymsResponse.Builder

addSearchHypernyms(SearchHypernym.Builder builderForValue)

public ListSearchHypernymsResponse.Builder addSearchHypernyms(SearchHypernym.Builder builderForValue)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameter
Name Description
builderForValue SearchHypernym.Builder
Returns
Type Description
ListSearchHypernymsResponse.Builder

addSearchHypernyms(int index, SearchHypernym value)

public ListSearchHypernymsResponse.Builder addSearchHypernyms(int index, SearchHypernym value)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameters
Name Description
index int
value SearchHypernym
Returns
Type Description
ListSearchHypernymsResponse.Builder

addSearchHypernyms(int index, SearchHypernym.Builder builderForValue)

public ListSearchHypernymsResponse.Builder addSearchHypernyms(int index, SearchHypernym.Builder builderForValue)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameters
Name Description
index int
builderForValue SearchHypernym.Builder
Returns
Type Description
ListSearchHypernymsResponse.Builder

addSearchHypernymsBuilder()

public SearchHypernym.Builder addSearchHypernymsBuilder()

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Returns
Type Description
SearchHypernym.Builder

addSearchHypernymsBuilder(int index)

public SearchHypernym.Builder addSearchHypernymsBuilder(int index)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchHypernym.Builder

build()

public ListSearchHypernymsResponse build()
Returns
Type Description
ListSearchHypernymsResponse

buildPartial()

public ListSearchHypernymsResponse buildPartial()
Returns
Type Description
ListSearchHypernymsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSearchHypernymsResponse.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
Type Description
ListSearchHypernymsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSearchHypernyms()

public ListSearchHypernymsResponse.Builder clearSearchHypernyms()

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Returns
Type Description
ListSearchHypernymsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSearchHypernymsResponse getDefaultInstanceForType()
Returns
Type Description
ListSearchHypernymsResponse

getDescriptorForType()

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

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
Type Description
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
Type Description
ByteString

The bytes for nextPageToken.

getSearchHypernyms(int index)

public SearchHypernym getSearchHypernyms(int index)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchHypernym

getSearchHypernymsBuilder(int index)

public SearchHypernym.Builder getSearchHypernymsBuilder(int index)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchHypernym.Builder

getSearchHypernymsBuilderList()

public List<SearchHypernym.Builder> getSearchHypernymsBuilderList()

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Returns
Type Description
List<Builder>

getSearchHypernymsCount()

public int getSearchHypernymsCount()

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Returns
Type Description
int

getSearchHypernymsList()

public List<SearchHypernym> getSearchHypernymsList()

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Returns
Type Description
List<SearchHypernym>

getSearchHypernymsOrBuilder(int index)

public SearchHypernymOrBuilder getSearchHypernymsOrBuilder(int index)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchHypernymOrBuilder

getSearchHypernymsOrBuilderList()

public List<? extends SearchHypernymOrBuilder> getSearchHypernymsOrBuilderList()

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.SearchHypernymOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSearchHypernymsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSearchHypernyms(int index)

public ListSearchHypernymsResponse.Builder removeSearchHypernyms(int index)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSearchHypernymsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSearchHypernymsResponse.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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListSearchHypernymsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSearchHypernymsResponse.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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListSearchHypernymsResponse.Builder

This builder for chaining.

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

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

setSearchHypernyms(int index, SearchHypernym value)

public ListSearchHypernymsResponse.Builder setSearchHypernyms(int index, SearchHypernym value)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameters
Name Description
index int
value SearchHypernym
Returns
Type Description
ListSearchHypernymsResponse.Builder

setSearchHypernyms(int index, SearchHypernym.Builder builderForValue)

public ListSearchHypernymsResponse.Builder setSearchHypernyms(int index, SearchHypernym.Builder builderForValue)

The SearchHypernyms from the specified corpus.

repeated .google.cloud.visionai.v1.SearchHypernym search_hypernyms = 1;

Parameters
Name Description
index int
builderForValue SearchHypernym.Builder
Returns
Type Description
ListSearchHypernymsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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