Class ProductAttributeInterval.Builder (2.56.0)

public static final class ProductAttributeInterval.Builder extends GeneratedMessageV3.Builder<ProductAttributeInterval.Builder> implements ProductAttributeIntervalOrBuilder

Product attribute name and numeric interval.

Protobuf type google.cloud.retail.v2alpha.ProductAttributeInterval

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProductAttributeInterval build()
Returns
Type Description
ProductAttributeInterval

buildPartial()

public ProductAttributeInterval buildPartial()
Returns
Type Description
ProductAttributeInterval

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInterval()

public ProductAttributeInterval.Builder clearInterval()

The numeric interval (e.g. [10, 20))

.google.cloud.retail.v2alpha.Interval interval = 2;

Returns
Type Description
ProductAttributeInterval.Builder

clearName()

public ProductAttributeInterval.Builder clearName()

The attribute name (e.g. "length")

string name = 1;

Returns
Type Description
ProductAttributeInterval.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ProductAttributeInterval getDefaultInstanceForType()
Returns
Type Description
ProductAttributeInterval

getDescriptorForType()

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

getInterval()

public Interval getInterval()

The numeric interval (e.g. [10, 20))

.google.cloud.retail.v2alpha.Interval interval = 2;

Returns
Type Description
Interval

The interval.

getIntervalBuilder()

public Interval.Builder getIntervalBuilder()

The numeric interval (e.g. [10, 20))

.google.cloud.retail.v2alpha.Interval interval = 2;

Returns
Type Description
Interval.Builder

getIntervalOrBuilder()

public IntervalOrBuilder getIntervalOrBuilder()

The numeric interval (e.g. [10, 20))

.google.cloud.retail.v2alpha.Interval interval = 2;

Returns
Type Description
IntervalOrBuilder

getName()

public String getName()

The attribute name (e.g. "length")

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The attribute name (e.g. "length")

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasInterval()

public boolean hasInterval()

The numeric interval (e.g. [10, 20))

.google.cloud.retail.v2alpha.Interval interval = 2;

Returns
Type Description
boolean

Whether the interval field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProductAttributeInterval other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInterval(Interval value)

public ProductAttributeInterval.Builder mergeInterval(Interval value)

The numeric interval (e.g. [10, 20))

.google.cloud.retail.v2alpha.Interval interval = 2;

Parameter
Name Description
value Interval
Returns
Type Description
ProductAttributeInterval.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInterval(Interval value)

public ProductAttributeInterval.Builder setInterval(Interval value)

The numeric interval (e.g. [10, 20))

.google.cloud.retail.v2alpha.Interval interval = 2;

Parameter
Name Description
value Interval
Returns
Type Description
ProductAttributeInterval.Builder

setInterval(Interval.Builder builderForValue)

public ProductAttributeInterval.Builder setInterval(Interval.Builder builderForValue)

The numeric interval (e.g. [10, 20))

.google.cloud.retail.v2alpha.Interval interval = 2;

Parameter
Name Description
builderForValue Interval.Builder
Returns
Type Description
ProductAttributeInterval.Builder

setName(String value)

public ProductAttributeInterval.Builder setName(String value)

The attribute name (e.g. "length")

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ProductAttributeInterval.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ProductAttributeInterval.Builder setNameBytes(ByteString value)

The attribute name (e.g. "length")

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ProductAttributeInterval.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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