Class Program.Requirement (0.2.0)

public static final class Program.Requirement extends GeneratedMessageV3 implements Program.RequirementOrBuilder

Defines a requirement specified for participation in the program.

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

Static Fields

AFFECTED_REGION_CODES_FIELD_NUMBER

public static final int AFFECTED_REGION_CODES_FIELD_NUMBER
Field Value
Type Description
int

DOCUMENTATION_URI_FIELD_NUMBER

public static final int DOCUMENTATION_URI_FIELD_NUMBER
Field Value
Type Description
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Program.Requirement getDefaultInstance()
Returns
Type Description
Program.Requirement

getDescriptor()

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

newBuilder()

public static Program.Requirement.Builder newBuilder()
Returns
Type Description
Program.Requirement.Builder

newBuilder(Program.Requirement prototype)

public static Program.Requirement.Builder newBuilder(Program.Requirement prototype)
Parameter
Name Description
prototype Program.Requirement
Returns
Type Description
Program.Requirement.Builder

parseDelimitedFrom(InputStream input)

public static Program.Requirement parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Program.Requirement
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Program.Requirement parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Program.Requirement
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Program.Requirement parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Program.Requirement
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Program.Requirement parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Program.Requirement
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Program.Requirement parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Program.Requirement
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Program.Requirement parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Program.Requirement
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Program.Requirement parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Program.Requirement
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Program.Requirement parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Program.Requirement
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Program.Requirement parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Program.Requirement
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Program.Requirement parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Program.Requirement
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Program.Requirement parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Program.Requirement
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Program.Requirement parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Program.Requirement
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Program.Requirement> parser()
Returns
Type Description
Parser<Requirement>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<Program.Requirement> getParserForType()
Returns
Type Description
Parser<Requirement>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Program.Requirement.Builder newBuilderForType()
Returns
Type Description
Program.Requirement.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Program.Requirement.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Program.Requirement.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Program.Requirement.Builder toBuilder()
Returns
Type Description
Program.Requirement.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException