Class SearchVersionsRequest.Builder (0.33.0)

public static final class SearchVersionsRequest.Builder extends GeneratedMessageV3.Builder<SearchVersionsRequest.Builder> implements SearchVersionsRequestOrBuilder

Request message for PrivateCatalog.SearchVersions.

Protobuf type google.cloud.privatecatalog.v1beta1.SearchVersionsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchVersionsRequest build()
Returns
TypeDescription
SearchVersionsRequest

buildPartial()

public SearchVersionsRequest buildPartial()
Returns
TypeDescription
SearchVersionsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public SearchVersionsRequest.Builder clearPageSize()

The maximum number of entries that are requested.

int32 page_size = 3;

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

clearPageToken()

public SearchVersionsRequest.Builder clearPageToken()

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

string page_token = 4;

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

clearQuery()

public SearchVersionsRequest.Builder clearQuery()

Required. The query to filter the versions.

The supported queries are:

  • List versions under a product: parent=catalogs/{catalog}/products/{product}
  • Get a version by name: name=catalogs/{catalog}/products/{product}/versions/{version}

string query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

clearResource()

public SearchVersionsRequest.Builder clearResource()

Required. The name of the resource context. See SearchCatalogsRequest.resource for details.

string resource = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SearchVersionsRequest getDefaultInstanceForType()
Returns
TypeDescription
SearchVersionsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPageSize()

public int getPageSize()

The maximum number of entries that are requested.

int32 page_size = 3;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

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

string page_token = 4;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

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

string page_token = 4;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getQuery()

public String getQuery()

Required. The query to filter the versions.

The supported queries are:

  • List versions under a product: parent=catalogs/{catalog}/products/{product}
  • Get a version by name: name=catalogs/{catalog}/products/{product}/versions/{version}

string query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The query.

getQueryBytes()

public ByteString getQueryBytes()

Required. The query to filter the versions.

The supported queries are:

  • List versions under a product: parent=catalogs/{catalog}/products/{product}
  • Get a version by name: name=catalogs/{catalog}/products/{product}/versions/{version}

string query = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for query.

getResource()

public String getResource()

Required. The name of the resource context. See SearchCatalogsRequest.resource for details.

string resource = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

Required. The name of the resource context. See SearchCatalogsRequest.resource for details.

string resource = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for resource.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchVersionsRequest other)

public SearchVersionsRequest.Builder mergeFrom(SearchVersionsRequest other)
Parameter
NameDescription
otherSearchVersionsRequest
Returns
TypeDescription
SearchVersionsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchVersionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchVersionsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageSize(int value)

public SearchVersionsRequest.Builder setPageSize(int value)

The maximum number of entries that are requested.

int32 page_size = 3;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

setPageToken(String value)

public SearchVersionsRequest.Builder setPageToken(String value)

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

string page_token = 4;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public SearchVersionsRequest.Builder setPageTokenBytes(ByteString value)

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

string page_token = 4;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

setQuery(String value)

public SearchVersionsRequest.Builder setQuery(String value)

Required. The query to filter the versions.

The supported queries are:

  • List versions under a product: parent=catalogs/{catalog}/products/{product}
  • Get a version by name: name=catalogs/{catalog}/products/{product}/versions/{version}

string query = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The query to set.

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

setQueryBytes(ByteString value)

public SearchVersionsRequest.Builder setQueryBytes(ByteString value)

Required. The query to filter the versions.

The supported queries are:

  • List versions under a product: parent=catalogs/{catalog}/products/{product}
  • Get a version by name: name=catalogs/{catalog}/products/{product}/versions/{version}

string query = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for query to set.

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

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

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

setResource(String value)

public SearchVersionsRequest.Builder setResource(String value)

Required. The name of the resource context. See SearchCatalogsRequest.resource for details.

string resource = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The resource to set.

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public SearchVersionsRequest.Builder setResourceBytes(ByteString value)

Required. The name of the resource context. See SearchCatalogsRequest.resource for details.

string resource = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for resource to set.

Returns
TypeDescription
SearchVersionsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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