public static final class TaxRule.TaxPostalCodeRange.Builder extends GeneratedMessageV3.Builder<TaxRule.TaxPostalCodeRange.Builder> implements TaxRule.TaxPostalCodeRangeOrBuilder
A range of postal codes that defines the area.
Protobuf type google.shopping.merchant.accounts.v1beta.TaxRule.TaxPostalCodeRange
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TaxRule.TaxPostalCodeRange.BuilderImplements
TaxRule.TaxPostalCodeRangeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TaxRule.TaxPostalCodeRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
build()
public TaxRule.TaxPostalCodeRange build()
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange |
buildPartial()
public TaxRule.TaxPostalCodeRange buildPartial()
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange |
clear()
public TaxRule.TaxPostalCodeRange.Builder clear()
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
clearEnd()
public TaxRule.TaxPostalCodeRange.Builder clearEnd()
The end of the postal code range. Will be the same as start if not specified.
string end = 2;
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TaxRule.TaxPostalCodeRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TaxRule.TaxPostalCodeRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
clearStart()
public TaxRule.TaxPostalCodeRange.Builder clearStart()
Required. The start of the postal code range, which is also the smallest in the range.
string start = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
This builder for chaining. |
clone()
public TaxRule.TaxPostalCodeRange.Builder clone()
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
getDefaultInstanceForType()
public TaxRule.TaxPostalCodeRange getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEnd()
public String getEnd()
The end of the postal code range. Will be the same as start if not specified.
string end = 2;
Returns | |
---|---|
Type | Description |
String |
The end. |
getEndBytes()
public ByteString getEndBytes()
The end of the postal code range. Will be the same as start if not specified.
string end = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for end. |
getStart()
public String getStart()
Required. The start of the postal code range, which is also the smallest in the range.
string start = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The start. |
getStartBytes()
public ByteString getStartBytes()
Required. The start of the postal code range, which is also the smallest in the range.
string start = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for start. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TaxRule.TaxPostalCodeRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TaxRule.TaxPostalCodeRange.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
mergeFrom(TaxRule.TaxPostalCodeRange other)
public TaxRule.TaxPostalCodeRange.Builder mergeFrom(TaxRule.TaxPostalCodeRange other)
Parameter | |
---|---|
Name | Description |
other |
TaxRule.TaxPostalCodeRange |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TaxRule.TaxPostalCodeRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
setEnd(String value)
public TaxRule.TaxPostalCodeRange.Builder setEnd(String value)
The end of the postal code range. Will be the same as start if not specified.
string end = 2;
Parameter | |
---|---|
Name | Description |
value |
String The end to set. |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
This builder for chaining. |
setEndBytes(ByteString value)
public TaxRule.TaxPostalCodeRange.Builder setEndBytes(ByteString value)
The end of the postal code range. Will be the same as start if not specified.
string end = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for end to set. |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TaxRule.TaxPostalCodeRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TaxRule.TaxPostalCodeRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
setStart(String value)
public TaxRule.TaxPostalCodeRange.Builder setStart(String value)
Required. The start of the postal code range, which is also the smallest in the range.
string start = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The start to set. |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
This builder for chaining. |
setStartBytes(ByteString value)
public TaxRule.TaxPostalCodeRange.Builder setStartBytes(ByteString value)
Required. The start of the postal code range, which is also the smallest in the range.
string start = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for start to set. |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TaxRule.TaxPostalCodeRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TaxRule.TaxPostalCodeRange.Builder |