Class SearchVersionsResponse.Builder (0.14.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.privatecatalog.v1beta1.Version>
Returns
TypeDescription
SearchVersionsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchVersionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueVersion
Returns
TypeDescription
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
NameDescription
builderForValueVersion.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVersion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVersion.Builder
Returns
TypeDescription
SearchVersionsResponse.Builder

addVersionsBuilder()

public Version.Builder addVersionsBuilder()

The Version resources computed from the resource context.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Version.Builder

build()

public SearchVersionsResponse build()
Returns
TypeDescription
SearchVersionsResponse

buildPartial()

public SearchVersionsResponse buildPartial()
Returns
TypeDescription
SearchVersionsResponse

clear()

public SearchVersionsResponse.Builder clear()
Returns
TypeDescription
SearchVersionsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchVersionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SearchVersionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchVersionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SearchVersionsResponse.Builder

clone()

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

getDefaultInstanceForType()

public SearchVersionsResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchVersionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getVersionsCount()

public int getVersionsCount()

The Version resources computed from the resource context.

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

Returns
TypeDescription
int

getVersionsList()

public List<Version> getVersionsList()

The Version resources computed from the resource context.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VersionOrBuilder

getVersionsOrBuilderList()

public List<? extends VersionOrBuilder> getVersionsOrBuilderList()

The Version resources computed from the resource context.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchVersionsResponse other)

public SearchVersionsResponse.Builder mergeFrom(SearchVersionsResponse other)
Parameter
NameDescription
otherSearchVersionsResponse
Returns
TypeDescription
SearchVersionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchVersionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SearchVersionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchVersionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchVersionsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchVersionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueVersion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVersion.Builder
Returns
TypeDescription
SearchVersionsResponse.Builder