Class CompensationFilter.Builder (2.14.0)

public static final class CompensationFilter.Builder extends GeneratedMessageV3.Builder<CompensationFilter.Builder> implements CompensationFilterOrBuilder

Filter on job compensation type and amount.

Protobuf type google.cloud.talent.v4.CompensationFilter

Static Methods

getDescriptor()

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

Methods

addAllUnits(Iterable<? extends CompensationInfo.CompensationUnit> values)

public CompensationFilter.Builder addAllUnits(Iterable<? extends CompensationInfo.CompensationUnit> values)

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.talent.v4.CompensationInfo.CompensationUnit>

The units to add.

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

addAllUnitsValue(Iterable<Integer> values)

public CompensationFilter.Builder addAllUnitsValue(Iterable<Integer> values)

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for units to add.

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnits(CompensationInfo.CompensationUnit value)

public CompensationFilter.Builder addUnits(CompensationInfo.CompensationUnit value)

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCompensationInfo.CompensationUnit

The units to add.

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

addUnitsValue(int value)

public CompensationFilter.Builder addUnitsValue(int value)

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for units to add.

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

build()

public CompensationFilter build()
Returns
TypeDescription
CompensationFilter

buildPartial()

public CompensationFilter buildPartial()
Returns
TypeDescription
CompensationFilter

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIncludeJobsWithUnspecifiedCompensationRange()

public CompensationFilter.Builder clearIncludeJobsWithUnspecifiedCompensationRange()

If set to true, jobs with unspecified compensation range fields are included.

bool include_jobs_with_unspecified_compensation_range = 4;

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRange()

public CompensationFilter.Builder clearRange()

Compensation range.

.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;

Returns
TypeDescription
CompensationFilter.Builder

clearType()

public CompensationFilter.Builder clearType()

Required. Type of filter.

.google.cloud.talent.v4.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

clearUnits()

public CompensationFilter.Builder clearUnits()

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CompensationFilter getDefaultInstanceForType()
Returns
TypeDescription
CompensationFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIncludeJobsWithUnspecifiedCompensationRange()

public boolean getIncludeJobsWithUnspecifiedCompensationRange()

If set to true, jobs with unspecified compensation range fields are included.

bool include_jobs_with_unspecified_compensation_range = 4;

Returns
TypeDescription
boolean

The includeJobsWithUnspecifiedCompensationRange.

getRange()

public CompensationInfo.CompensationRange getRange()

Compensation range.

.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;

Returns
TypeDescription
CompensationInfo.CompensationRange

The range.

getRangeBuilder()

public CompensationInfo.CompensationRange.Builder getRangeBuilder()

Compensation range.

.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;

Returns
TypeDescription
CompensationInfo.CompensationRange.Builder

getRangeOrBuilder()

public CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder()

Compensation range.

.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;

Returns
TypeDescription
CompensationInfo.CompensationRangeOrBuilder

getType()

public CompensationFilter.FilterType getType()

Required. Type of filter.

.google.cloud.talent.v4.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CompensationFilter.FilterType

The type.

getTypeValue()

public int getTypeValue()

Required. Type of filter.

.google.cloud.talent.v4.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUnits(int index)

public CompensationInfo.CompensationUnit getUnits(int index)

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
CompensationInfo.CompensationUnit

The units at the given index.

getUnitsCount()

public int getUnitsCount()

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of units.

getUnitsList()

public List<CompensationInfo.CompensationUnit> getUnitsList()

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<CompensationUnit>

A list containing the units.

getUnitsValue(int index)

public int getUnitsValue(int index)

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of units at the given index.

getUnitsValueList()

public List<Integer> getUnitsValueList()

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for units.

hasRange()

public boolean hasRange()

Compensation range.

.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;

Returns
TypeDescription
boolean

Whether the range field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CompensationFilter other)

public CompensationFilter.Builder mergeFrom(CompensationFilter other)
Parameter
NameDescription
otherCompensationFilter
Returns
TypeDescription
CompensationFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRange(CompensationInfo.CompensationRange value)

public CompensationFilter.Builder mergeRange(CompensationInfo.CompensationRange value)

Compensation range.

.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;

Parameter
NameDescription
valueCompensationInfo.CompensationRange
Returns
TypeDescription
CompensationFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIncludeJobsWithUnspecifiedCompensationRange(boolean value)

public CompensationFilter.Builder setIncludeJobsWithUnspecifiedCompensationRange(boolean value)

If set to true, jobs with unspecified compensation range fields are included.

bool include_jobs_with_unspecified_compensation_range = 4;

Parameter
NameDescription
valueboolean

The includeJobsWithUnspecifiedCompensationRange to set.

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

setRange(CompensationInfo.CompensationRange value)

public CompensationFilter.Builder setRange(CompensationInfo.CompensationRange value)

Compensation range.

.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;

Parameter
NameDescription
valueCompensationInfo.CompensationRange
Returns
TypeDescription
CompensationFilter.Builder

setRange(CompensationInfo.CompensationRange.Builder builderForValue)

public CompensationFilter.Builder setRange(CompensationInfo.CompensationRange.Builder builderForValue)

Compensation range.

.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 3;

Parameter
NameDescription
builderForValueCompensationInfo.CompensationRange.Builder
Returns
TypeDescription
CompensationFilter.Builder

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

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

setType(CompensationFilter.FilterType value)

public CompensationFilter.Builder setType(CompensationFilter.FilterType value)

Required. Type of filter.

.google.cloud.talent.v4.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCompensationFilter.FilterType

The type to set.

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

setTypeValue(int value)

public CompensationFilter.Builder setTypeValue(int value)

Required. Type of filter.

.google.cloud.talent.v4.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

setUnits(int index, CompensationInfo.CompensationUnit value)

public CompensationFilter.Builder setUnits(int index, CompensationInfo.CompensationUnit value)

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueCompensationInfo.CompensationUnit

The units to set.

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

setUnitsValue(int index, int value)

public CompensationFilter.Builder setUnitsValue(int index, int value)

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit.

repeated .google.cloud.talent.v4.CompensationInfo.CompensationUnit units = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
CompensationFilter.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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