Class ListProgramsResponse.Builder (0.1.0)

public static final class ListProgramsResponse.Builder extends GeneratedMessageV3.Builder<ListProgramsResponse.Builder> implements ListProgramsResponseOrBuilder

Response message for the ListPrograms method.

Protobuf type google.shopping.merchant.accounts.v1beta.ListProgramsResponse

Static Methods

getDescriptor()

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

Methods

addAllPrograms(Iterable<? extends Program> values)

public ListProgramsResponse.Builder addAllPrograms(Iterable<? extends Program> values)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.accounts.v1beta.Program>
Returns
Type Description
ListProgramsResponse.Builder

addPrograms(Program value)

public ListProgramsResponse.Builder addPrograms(Program value)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameter
Name Description
value Program
Returns
Type Description
ListProgramsResponse.Builder

addPrograms(Program.Builder builderForValue)

public ListProgramsResponse.Builder addPrograms(Program.Builder builderForValue)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameter
Name Description
builderForValue Program.Builder
Returns
Type Description
ListProgramsResponse.Builder

addPrograms(int index, Program value)

public ListProgramsResponse.Builder addPrograms(int index, Program value)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameters
Name Description
index int
value Program
Returns
Type Description
ListProgramsResponse.Builder

addPrograms(int index, Program.Builder builderForValue)

public ListProgramsResponse.Builder addPrograms(int index, Program.Builder builderForValue)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameters
Name Description
index int
builderForValue Program.Builder
Returns
Type Description
ListProgramsResponse.Builder

addProgramsBuilder()

public Program.Builder addProgramsBuilder()

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Returns
Type Description
Program.Builder

addProgramsBuilder(int index)

public Program.Builder addProgramsBuilder(int index)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameter
Name Description
index int
Returns
Type Description
Program.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListProgramsResponse build()
Returns
Type Description
ListProgramsResponse

buildPartial()

public ListProgramsResponse buildPartial()
Returns
Type Description
ListProgramsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListProgramsResponse.Builder clearNextPageToken()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListProgramsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrograms()

public ListProgramsResponse.Builder clearPrograms()

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Returns
Type Description
ListProgramsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListProgramsResponse getDefaultInstanceForType()
Returns
Type Description
ListProgramsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getPrograms(int index)

public Program getPrograms(int index)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameter
Name Description
index int
Returns
Type Description
Program

getProgramsBuilder(int index)

public Program.Builder getProgramsBuilder(int index)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameter
Name Description
index int
Returns
Type Description
Program.Builder

getProgramsBuilderList()

public List<Program.Builder> getProgramsBuilderList()

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Returns
Type Description
List<Builder>

getProgramsCount()

public int getProgramsCount()

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Returns
Type Description
int

getProgramsList()

public List<Program> getProgramsList()

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Returns
Type Description
List<Program>

getProgramsOrBuilder(int index)

public ProgramOrBuilder getProgramsOrBuilder(int index)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameter
Name Description
index int
Returns
Type Description
ProgramOrBuilder

getProgramsOrBuilderList()

public List<? extends ProgramOrBuilder> getProgramsOrBuilderList()

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1beta.ProgramOrBuilder>

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 ListProgramsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListProgramsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(ListProgramsResponse other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePrograms(int index)

public ListProgramsResponse.Builder removePrograms(int index)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameter
Name Description
index int
Returns
Type Description
ListProgramsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListProgramsResponse.Builder setNextPageToken(String value)

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListProgramsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListProgramsResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListProgramsResponse.Builder

This builder for chaining.

setPrograms(int index, Program value)

public ListProgramsResponse.Builder setPrograms(int index, Program value)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameters
Name Description
index int
value Program
Returns
Type Description
ListProgramsResponse.Builder

setPrograms(int index, Program.Builder builderForValue)

public ListProgramsResponse.Builder setPrograms(int index, Program.Builder builderForValue)

The programs for the given account.

repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;

Parameters
Name Description
index int
builderForValue Program.Builder
Returns
Type Description
ListProgramsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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