Class SearchResult.Builder (0.4.0)

public static final class SearchResult.Builder extends GeneratedMessageV3.Builder<SearchResult.Builder> implements SearchResultOrBuilder

Represents the search results.

Protobuf type google.cloud.apihub.v1.SearchResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchResult build()
Returns
Type Description
SearchResult

buildPartial()

public SearchResult buildPartial()
Returns
Type Description
SearchResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResource()

public SearchResult.Builder clearResource()

This represents the ApiHubResource. Note: Only selected fields of the resources are populated in response.

.google.cloud.apihub.v1.ApiHubResource resource = 1;

Returns
Type Description
SearchResult.Builder

clone()

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

getDefaultInstanceForType()

public SearchResult getDefaultInstanceForType()
Returns
Type Description
SearchResult

getDescriptorForType()

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

getResource()

public ApiHubResource getResource()

This represents the ApiHubResource. Note: Only selected fields of the resources are populated in response.

.google.cloud.apihub.v1.ApiHubResource resource = 1;

Returns
Type Description
ApiHubResource

The resource.

getResourceBuilder()

public ApiHubResource.Builder getResourceBuilder()

This represents the ApiHubResource. Note: Only selected fields of the resources are populated in response.

.google.cloud.apihub.v1.ApiHubResource resource = 1;

Returns
Type Description
ApiHubResource.Builder

getResourceOrBuilder()

public ApiHubResourceOrBuilder getResourceOrBuilder()

This represents the ApiHubResource. Note: Only selected fields of the resources are populated in response.

.google.cloud.apihub.v1.ApiHubResource resource = 1;

Returns
Type Description
ApiHubResourceOrBuilder

hasResource()

public boolean hasResource()

This represents the ApiHubResource. Note: Only selected fields of the resources are populated in response.

.google.cloud.apihub.v1.ApiHubResource resource = 1;

Returns
Type Description
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResource(ApiHubResource value)

public SearchResult.Builder mergeResource(ApiHubResource value)

This represents the ApiHubResource. Note: Only selected fields of the resources are populated in response.

.google.cloud.apihub.v1.ApiHubResource resource = 1;

Parameter
Name Description
value ApiHubResource
Returns
Type Description
SearchResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResource(ApiHubResource value)

public SearchResult.Builder setResource(ApiHubResource value)

This represents the ApiHubResource. Note: Only selected fields of the resources are populated in response.

.google.cloud.apihub.v1.ApiHubResource resource = 1;

Parameter
Name Description
value ApiHubResource
Returns
Type Description
SearchResult.Builder

setResource(ApiHubResource.Builder builderForValue)

public SearchResult.Builder setResource(ApiHubResource.Builder builderForValue)

This represents the ApiHubResource. Note: Only selected fields of the resources are populated in response.

.google.cloud.apihub.v1.ApiHubResource resource = 1;

Parameter
Name Description
builderForValue ApiHubResource.Builder
Returns
Type Description
SearchResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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