Class SearchVersionsResponse.Builder (0.46.0)

public static final class SearchVersionsResponse.Builder extends GeneratedMessageV3.Builder<SearchVersionsResponse.Builder> implements SearchVersionsResponseOrBuilder

Response message for PrivateCatalog.SearchVersions.

Protobuf type google.cloud.privatecatalog.v1beta1.SearchVersionsResponse

Static Methods

getDescriptor()

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

Methods

addAllVersions(Iterable<? extends Version> values)

public SearchVersionsResponse.Builder addAllVersions(Iterable<? extends Version> values)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.privatecatalog.v1beta1.Version>
Returns
Type Description
SearchVersionsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVersions(Version value)

public SearchVersionsResponse.Builder addVersions(Version value)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameter
Name Description
value Version
Returns
Type Description
SearchVersionsResponse.Builder

addVersions(Version.Builder builderForValue)

public SearchVersionsResponse.Builder addVersions(Version.Builder builderForValue)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameter
Name Description
builderForValue Version.Builder
Returns
Type Description
SearchVersionsResponse.Builder

addVersions(int index, Version value)

public SearchVersionsResponse.Builder addVersions(int index, Version value)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameters
Name Description
index int
value Version
Returns
Type Description
SearchVersionsResponse.Builder

addVersions(int index, Version.Builder builderForValue)

public SearchVersionsResponse.Builder addVersions(int index, Version.Builder builderForValue)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameters
Name Description
index int
builderForValue Version.Builder
Returns
Type Description
SearchVersionsResponse.Builder

addVersionsBuilder()

public Version.Builder addVersionsBuilder()

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Returns
Type Description
Version.Builder

addVersionsBuilder(int index)

public Version.Builder addVersionsBuilder(int index)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameter
Name Description
index int
Returns
Type Description
Version.Builder

build()

public SearchVersionsResponse build()
Returns
Type Description
SearchVersionsResponse

buildPartial()

public SearchVersionsResponse buildPartial()
Returns
Type Description
SearchVersionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public SearchVersionsResponse.Builder clearNextPageToken()

A pagination token returned from a previous call to SearchVersions that indicates from where the listing should continue.

string next_page_token = 2;

Returns
Type Description
SearchVersionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersions()

public SearchVersionsResponse.Builder clearVersions()

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Returns
Type Description
SearchVersionsResponse.Builder

clone()

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

getDefaultInstanceForType()

public SearchVersionsResponse getDefaultInstanceForType()
Returns
Type Description
SearchVersionsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A pagination token returned from a previous call to SearchVersions that indicates from where the listing should continue.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A pagination token returned from a previous call to SearchVersions that indicates from where the listing should continue.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getVersions(int index)

public Version getVersions(int index)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameter
Name Description
index int
Returns
Type Description
Version

getVersionsBuilder(int index)

public Version.Builder getVersionsBuilder(int index)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameter
Name Description
index int
Returns
Type Description
Version.Builder

getVersionsBuilderList()

public List<Version.Builder> getVersionsBuilderList()

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Returns
Type Description
List<Builder>

getVersionsCount()

public int getVersionsCount()

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Returns
Type Description
int

getVersionsList()

public List<Version> getVersionsList()

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Returns
Type Description
List<Version>

getVersionsOrBuilder(int index)

public VersionOrBuilder getVersionsOrBuilder(int index)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameter
Name Description
index int
Returns
Type Description
VersionOrBuilder

getVersionsOrBuilderList()

public List<? extends VersionOrBuilder> getVersionsOrBuilderList()

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Returns
Type Description
List<? extends com.google.cloud.privatecatalog.v1beta1.VersionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchVersionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVersions(int index)

public SearchVersionsResponse.Builder removeVersions(int index)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchVersionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public SearchVersionsResponse.Builder setNextPageToken(String value)

A pagination token returned from a previous call to SearchVersions that indicates from where the listing should continue.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchVersionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchVersionsResponse.Builder setNextPageTokenBytes(ByteString value)

A pagination token returned from a previous call to SearchVersions that indicates from where the listing should continue.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
SearchVersionsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersions(int index, Version value)

public SearchVersionsResponse.Builder setVersions(int index, Version value)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameters
Name Description
index int
value Version
Returns
Type Description
SearchVersionsResponse.Builder

setVersions(int index, Version.Builder builderForValue)

public SearchVersionsResponse.Builder setVersions(int index, Version.Builder builderForValue)

The Version resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Version versions = 1;

Parameters
Name Description
index int
builderForValue Version.Builder
Returns
Type Description
SearchVersionsResponse.Builder