Class Program.Requirement.Builder (0.1.0)

public static final class Program.Requirement.Builder extends GeneratedMessageV3.Builder<Program.Requirement.Builder> implements Program.RequirementOrBuilder

Defines a requirement specified for participation in the program.

Protobuf type google.shopping.merchant.accounts.v1beta.Program.Requirement

Static Methods

getDescriptor()

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

Methods

addAffectedRegionCodes(String value)

public Program.Requirement.Builder addAffectedRegionCodes(String value)

Output only. The regions that are currently affected by this requirement not being met.

Region codes are defined by CLDR. This is either a country where the program applies specifically to that country or 001 when the program applies globally.

repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The affectedRegionCodes to add.

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

addAffectedRegionCodesBytes(ByteString value)

public Program.Requirement.Builder addAffectedRegionCodesBytes(ByteString value)

Output only. The regions that are currently affected by this requirement not being met.

Region codes are defined by CLDR. This is either a country where the program applies specifically to that country or 001 when the program applies globally.

repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the affectedRegionCodes to add.

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

addAllAffectedRegionCodes(Iterable<String> values)

public Program.Requirement.Builder addAllAffectedRegionCodes(Iterable<String> values)

Output only. The regions that are currently affected by this requirement not being met.

Region codes are defined by CLDR. This is either a country where the program applies specifically to that country or 001 when the program applies globally.

repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The affectedRegionCodes to add.

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Program.Requirement build()
Returns
Type Description
Program.Requirement

buildPartial()

public Program.Requirement buildPartial()
Returns
Type Description
Program.Requirement

clear()

public Program.Requirement.Builder clear()
Returns
Type Description
Program.Requirement.Builder
Overrides

clearAffectedRegionCodes()

public Program.Requirement.Builder clearAffectedRegionCodes()

Output only. The regions that are currently affected by this requirement not being met.

Region codes are defined by CLDR. This is either a country where the program applies specifically to that country or 001 when the program applies globally.

repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

clearDocumentationUri()

public Program.Requirement.Builder clearDocumentationUri()

Output only. The URL of a help page describing the requirement.

string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTitle()

public Program.Requirement.Builder clearTitle()

Output only. Name of the requirement.

string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

clone()

public Program.Requirement.Builder clone()
Returns
Type Description
Program.Requirement.Builder
Overrides

getAffectedRegionCodes(int index)

public String getAffectedRegionCodes(int index)

Output only. The regions that are currently affected by this requirement not being met.

Region codes are defined by CLDR. This is either a country where the program applies specifically to that country or 001 when the program applies globally.

repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The affectedRegionCodes at the given index.

getAffectedRegionCodesBytes(int index)

public ByteString getAffectedRegionCodesBytes(int index)

Output only. The regions that are currently affected by this requirement not being met.

Region codes are defined by CLDR. This is either a country where the program applies specifically to that country or 001 when the program applies globally.

repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the affectedRegionCodes at the given index.

getAffectedRegionCodesCount()

public int getAffectedRegionCodesCount()

Output only. The regions that are currently affected by this requirement not being met.

Region codes are defined by CLDR. This is either a country where the program applies specifically to that country or 001 when the program applies globally.

repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of affectedRegionCodes.

getAffectedRegionCodesList()

public ProtocolStringList getAffectedRegionCodesList()

Output only. The regions that are currently affected by this requirement not being met.

Region codes are defined by CLDR. This is either a country where the program applies specifically to that country or 001 when the program applies globally.

repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the affectedRegionCodes.

getDefaultInstanceForType()

public Program.Requirement getDefaultInstanceForType()
Returns
Type Description
Program.Requirement

getDescriptorForType()

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

getDocumentationUri()

public String getDocumentationUri()

Output only. The URL of a help page describing the requirement.

string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The documentationUri.

getDocumentationUriBytes()

public ByteString getDocumentationUriBytes()

Output only. The URL of a help page describing the requirement.

string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for documentationUri.

getTitle()

public String getTitle()

Output only. Name of the requirement.

string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Output only. Name of the requirement.

string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for title.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Program.Requirement other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAffectedRegionCodes(int index, String value)

public Program.Requirement.Builder setAffectedRegionCodes(int index, String value)

Output only. The regions that are currently affected by this requirement not being met.

Region codes are defined by CLDR. This is either a country where the program applies specifically to that country or 001 when the program applies globally.

repeated string affected_region_codes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The affectedRegionCodes to set.

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

setDocumentationUri(String value)

public Program.Requirement.Builder setDocumentationUri(String value)

Output only. The URL of a help page describing the requirement.

string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The documentationUri to set.

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

setDocumentationUriBytes(ByteString value)

public Program.Requirement.Builder setDocumentationUriBytes(ByteString value)

Output only. The URL of a help page describing the requirement.

string documentation_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for documentationUri to set.

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTitle(String value)

public Program.Requirement.Builder setTitle(String value)

Output only. Name of the requirement.

string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The title to set.

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Program.Requirement.Builder setTitleBytes(ByteString value)

Output only. Name of the requirement.

string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
Program.Requirement.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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