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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
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
|
public ListProgramsResponse.Builder addPrograms(Program.Builder builderForValue)
The programs for the given account.
repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;
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
|
public ListProgramsResponse.Builder addPrograms(int index, Program.Builder builderForValue)
The programs for the given account.
repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;
public Program.Builder addProgramsBuilder()
The programs for the given account.
repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;
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
|
public ListProgramsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ListProgramsResponse build()
public ListProgramsResponse buildPartial()
public ListProgramsResponse.Builder clear()
Overrides
public ListProgramsResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
public ListProgramsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ListProgramsResponse.Builder clearPrograms()
The programs for the given account.
repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;
public ListProgramsResponse.Builder clone()
Overrides
public ListProgramsResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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.
|
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
|
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
|
public List<Program.Builder> getProgramsBuilderList()
The programs for the given account.
repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;
public int getProgramsCount()
The programs for the given account.
repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;
Returns |
Type |
Description |
int |
|
public List<Program> getProgramsList()
The programs for the given account.
repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;
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
|
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> |
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ListProgramsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ListProgramsResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public ListProgramsResponse.Builder mergeFrom(ListProgramsResponse other)
public final ListProgramsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public ListProgramsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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
|
public ListProgramsResponse.Builder setPrograms(int index, Program.Builder builderForValue)
The programs for the given account.
repeated .google.shopping.merchant.accounts.v1beta.Program programs = 1;
public ListProgramsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ListProgramsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides