Class HistogramQueryPropertyNameFilter.Builder (0.9.0)

public static final class HistogramQueryPropertyNameFilter.Builder extends GeneratedMessageV3.Builder<HistogramQueryPropertyNameFilter.Builder> implements HistogramQueryPropertyNameFilterOrBuilder

Protobuf type google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter

Static Methods

getDescriptor()

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

Methods

addAllDocumentSchemas(Iterable<String> values)

public HistogramQueryPropertyNameFilter.Builder addAllDocumentSchemas(Iterable<String> values)

This filter specifies the exact document schema(s) Document.document_schema_name to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set. At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The documentSchemas to add.

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

addAllPropertyNames(Iterable<String> values)

public HistogramQueryPropertyNameFilter.Builder addAllPropertyNames(Iterable<String> values)

It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".

repeated string property_names = 2;

Parameter
NameDescription
valuesIterable<String>

The propertyNames to add.

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

addDocumentSchemas(String value)

public HistogramQueryPropertyNameFilter.Builder addDocumentSchemas(String value)

This filter specifies the exact document schema(s) Document.document_schema_name to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set. At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The documentSchemas to add.

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

addDocumentSchemasBytes(ByteString value)

public HistogramQueryPropertyNameFilter.Builder addDocumentSchemasBytes(ByteString value)

This filter specifies the exact document schema(s) Document.document_schema_name to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set. At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the documentSchemas to add.

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

addPropertyNames(String value)

public HistogramQueryPropertyNameFilter.Builder addPropertyNames(String value)

It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".

repeated string property_names = 2;

Parameter
NameDescription
valueString

The propertyNames to add.

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

addPropertyNamesBytes(ByteString value)

public HistogramQueryPropertyNameFilter.Builder addPropertyNamesBytes(ByteString value)

It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".

repeated string property_names = 2;

Parameter
NameDescription
valueByteString

The bytes of the propertyNames to add.

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HistogramQueryPropertyNameFilter build()
Returns
TypeDescription
HistogramQueryPropertyNameFilter

buildPartial()

public HistogramQueryPropertyNameFilter buildPartial()
Returns
TypeDescription
HistogramQueryPropertyNameFilter

clear()

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

clearDocumentSchemas()

public HistogramQueryPropertyNameFilter.Builder clearDocumentSchemas()

This filter specifies the exact document schema(s) Document.document_schema_name to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set. At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertyNames()

public HistogramQueryPropertyNameFilter.Builder clearPropertyNames()

It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".

repeated string property_names = 2;

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

clearYAxis()

public HistogramQueryPropertyNameFilter.Builder clearYAxis()

By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not set.

.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3;

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public HistogramQueryPropertyNameFilter getDefaultInstanceForType()
Returns
TypeDescription
HistogramQueryPropertyNameFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocumentSchemas(int index)

public String getDocumentSchemas(int index)

This filter specifies the exact document schema(s) Document.document_schema_name to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set. At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The documentSchemas at the given index.

getDocumentSchemasBytes(int index)

public ByteString getDocumentSchemasBytes(int index)

This filter specifies the exact document schema(s) Document.document_schema_name to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set. At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the documentSchemas at the given index.

getDocumentSchemasCount()

public int getDocumentSchemasCount()

This filter specifies the exact document schema(s) Document.document_schema_name to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set. At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of documentSchemas.

getDocumentSchemasList()

public ProtocolStringList getDocumentSchemasList()

This filter specifies the exact document schema(s) Document.document_schema_name to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set. At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the documentSchemas.

getPropertyNames(int index)

public String getPropertyNames(int index)

It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".

repeated string property_names = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The propertyNames at the given index.

getPropertyNamesBytes(int index)

public ByteString getPropertyNamesBytes(int index)

It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".

repeated string property_names = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the propertyNames at the given index.

getPropertyNamesCount()

public int getPropertyNamesCount()

It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".

repeated string property_names = 2;

Returns
TypeDescription
int

The count of propertyNames.

getPropertyNamesList()

public ProtocolStringList getPropertyNamesList()

It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".

repeated string property_names = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the propertyNames.

getYAxis()

public HistogramQueryPropertyNameFilter.HistogramYAxis getYAxis()

By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not set.

.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3;

Returns
TypeDescription
HistogramQueryPropertyNameFilter.HistogramYAxis

The yAxis.

getYAxisValue()

public int getYAxisValue()

By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not set.

.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for yAxis.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HistogramQueryPropertyNameFilter other)

public HistogramQueryPropertyNameFilter.Builder mergeFrom(HistogramQueryPropertyNameFilter other)
Parameter
NameDescription
otherHistogramQueryPropertyNameFilter
Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDocumentSchemas(int index, String value)

public HistogramQueryPropertyNameFilter.Builder setDocumentSchemas(int index, String value)

This filter specifies the exact document schema(s) Document.document_schema_name to run histogram query against. It is optional. It will perform histogram for property names for all the document schemas if it is not set. At most 10 document schema names are allowed. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.

repeated string document_schemas = 1 [(.google.api.resource_reference) = { ... }

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The documentSchemas to set.

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPropertyNames(int index, String value)

public HistogramQueryPropertyNameFilter.Builder setPropertyNames(int index, String value)

It is optional. It will perform histogram for all the property names if it is not set. The properties need to be defined with the is_filterable flag set to true and the name of the property should be in the format: "schemaId.propertyName". The property needs to be defined in the schema. Example: the schema id is abc. Then the name of property for property MORTGAGE_TYPE will be "abc.MORTGAGE_TYPE".

repeated string property_names = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The propertyNames to set.

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setYAxis(HistogramQueryPropertyNameFilter.HistogramYAxis value)

public HistogramQueryPropertyNameFilter.Builder setYAxis(HistogramQueryPropertyNameFilter.HistogramYAxis value)

By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not set.

.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3;

Parameter
NameDescription
valueHistogramQueryPropertyNameFilter.HistogramYAxis

The yAxis to set.

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.

setYAxisValue(int value)

public HistogramQueryPropertyNameFilter.Builder setYAxisValue(int value)

By default, the y_axis is HISTOGRAM_YAXIS_DOCUMENT if this field is not set.

.google.cloud.contentwarehouse.v1.HistogramQueryPropertyNameFilter.HistogramYAxis y_axis = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for yAxis to set.

Returns
TypeDescription
HistogramQueryPropertyNameFilter.Builder

This builder for chaining.