public static final class ListPlacementsResponse.Builder extends GeneratedMessageV3.Builder<ListPlacementsResponse.Builder> implements ListPlacementsResponseOrBuilder
Response object for ListPlacementsRequest
containing matching Placement
objects.
Protobuf type google.ads.admanager.v1.ListPlacementsResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListPlacementsResponse.BuilderImplements
ListPlacementsResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllPlacements(Iterable<? extends Placement> values)
public ListPlacementsResponse.Builder addAllPlacements(Iterable<? extends Placement> values)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.ads.admanager.v1.Placement> |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
addPlacements(Placement value)
public ListPlacementsResponse.Builder addPlacements(Placement value)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameter | |
---|---|
Name | Description |
value |
Placement |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
addPlacements(Placement.Builder builderForValue)
public ListPlacementsResponse.Builder addPlacements(Placement.Builder builderForValue)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameter | |
---|---|
Name | Description |
builderForValue |
Placement.Builder |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
addPlacements(int index, Placement value)
public ListPlacementsResponse.Builder addPlacements(int index, Placement value)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Placement |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
addPlacements(int index, Placement.Builder builderForValue)
public ListPlacementsResponse.Builder addPlacements(int index, Placement.Builder builderForValue)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Placement.Builder |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
addPlacementsBuilder()
public Placement.Builder addPlacementsBuilder()
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Returns | |
---|---|
Type | Description |
Placement.Builder |
addPlacementsBuilder(int index)
public Placement.Builder addPlacementsBuilder(int index)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Placement.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListPlacementsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
build()
public ListPlacementsResponse build()
Returns | |
---|---|
Type | Description |
ListPlacementsResponse |
buildPartial()
public ListPlacementsResponse buildPartial()
Returns | |
---|---|
Type | Description |
ListPlacementsResponse |
clear()
public ListPlacementsResponse.Builder clear()
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public ListPlacementsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
clearNextPageToken()
public ListPlacementsResponse.Builder clearNextPageToken()
A token, which 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 |
ListPlacementsResponse.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ListPlacementsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
clearPlacements()
public ListPlacementsResponse.Builder clearPlacements()
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
clearTotalSize()
public ListPlacementsResponse.Builder clearTotalSize()
Total number of Placement
objects.
If a filter was included in the request, this reflects the total number
after the filtering is applied.
total_size
will not be calculated in the response unless it has been
included in a response field mask. The response field mask can be provided
to the method by using the URL parameter $fields
or fields
, or by using
the HTTP/gRPC header X-Goog-FieldMask
.
For more information, see https://developers.google.com/ad-manager/api/beta/field-masks
int32 total_size = 3;
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
This builder for chaining. |
clone()
public ListPlacementsResponse.Builder clone()
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
getDefaultInstanceForType()
public ListPlacementsResponse getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ListPlacementsResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getNextPageToken()
public String getNextPageToken()
A token, which 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, which 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. |
getPlacements(int index)
public Placement getPlacements(int index)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Placement |
getPlacementsBuilder(int index)
public Placement.Builder getPlacementsBuilder(int index)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Placement.Builder |
getPlacementsBuilderList()
public List<Placement.Builder> getPlacementsBuilderList()
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Returns | |
---|---|
Type | Description |
List<Builder> |
getPlacementsCount()
public int getPlacementsCount()
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Returns | |
---|---|
Type | Description |
int |
getPlacementsList()
public List<Placement> getPlacementsList()
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Returns | |
---|---|
Type | Description |
List<Placement> |
getPlacementsOrBuilder(int index)
public PlacementOrBuilder getPlacementsOrBuilder(int index)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PlacementOrBuilder |
getPlacementsOrBuilderList()
public List<? extends PlacementOrBuilder> getPlacementsOrBuilderList()
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Returns | |
---|---|
Type | Description |
List<? extends com.google.ads.admanager.v1.PlacementOrBuilder> |
getTotalSize()
public int getTotalSize()
Total number of Placement
objects.
If a filter was included in the request, this reflects the total number
after the filtering is applied.
total_size
will not be calculated in the response unless it has been
included in a response field mask. The response field mask can be provided
to the method by using the URL parameter $fields
or fields
, or by using
the HTTP/gRPC header X-Goog-FieldMask
.
For more information, see https://developers.google.com/ad-manager/api/beta/field-masks
int32 total_size = 3;
Returns | |
---|---|
Type | Description |
int |
The totalSize. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ListPlacementsResponse other)
public ListPlacementsResponse.Builder mergeFrom(ListPlacementsResponse other)
Parameter | |
---|---|
Name | Description |
other |
ListPlacementsResponse |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListPlacementsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ListPlacementsResponse.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListPlacementsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
removePlacements(int index)
public ListPlacementsResponse.Builder removePlacements(int index)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ListPlacementsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
setNextPageToken(String value)
public ListPlacementsResponse.Builder setNextPageToken(String value)
A token, which 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 |
ListPlacementsResponse.Builder |
This builder for chaining. |
setNextPageTokenBytes(ByteString value)
public ListPlacementsResponse.Builder setNextPageTokenBytes(ByteString value)
A token, which 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 |
ListPlacementsResponse.Builder |
This builder for chaining. |
setPlacements(int index, Placement value)
public ListPlacementsResponse.Builder setPlacements(int index, Placement value)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Placement |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
setPlacements(int index, Placement.Builder builderForValue)
public ListPlacementsResponse.Builder setPlacements(int index, Placement.Builder builderForValue)
The Placement
objects from the specified network.
repeated .google.ads.admanager.v1.Placement placements = 1;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Placement.Builder |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListPlacementsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
setTotalSize(int value)
public ListPlacementsResponse.Builder setTotalSize(int value)
Total number of Placement
objects.
If a filter was included in the request, this reflects the total number
after the filtering is applied.
total_size
will not be calculated in the response unless it has been
included in a response field mask. The response field mask can be provided
to the method by using the URL parameter $fields
or fields
, or by using
the HTTP/gRPC header X-Goog-FieldMask
.
For more information, see https://developers.google.com/ad-manager/api/beta/field-masks
int32 total_size = 3;
Parameter | |
---|---|
Name | Description |
value |
int The totalSize to set. |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ListPlacementsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ListPlacementsResponse.Builder |