public static final class ListAdSpotsResponse.Builder extends GeneratedMessage.Builder<ListAdSpotsResponse.Builder> implements ListAdSpotsResponseOrBuilder Response object for ListAdSpotsRequest containing matching AdSpot
objects.
Protobuf type google.ads.admanager.v1.ListAdSpotsResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListAdSpotsResponse.BuilderImplements
ListAdSpotsResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAdSpots(AdSpot value)
public ListAdSpotsResponse.Builder addAdSpots(AdSpot value) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
AdSpot |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
addAdSpots(AdSpot.Builder builderForValue)
public ListAdSpotsResponse.Builder addAdSpots(AdSpot.Builder builderForValue) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AdSpot.Builder |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
addAdSpots(int index, AdSpot value)
public ListAdSpotsResponse.Builder addAdSpots(int index, AdSpot value) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AdSpot |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
addAdSpots(int index, AdSpot.Builder builderForValue)
public ListAdSpotsResponse.Builder addAdSpots(int index, AdSpot.Builder builderForValue) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AdSpot.Builder |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
addAdSpotsBuilder()
public AdSpot.Builder addAdSpotsBuilder() The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Returns | |
|---|---|
| Type | Description |
AdSpot.Builder |
|
addAdSpotsBuilder(int index)
public AdSpot.Builder addAdSpotsBuilder(int index) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdSpot.Builder |
|
addAllAdSpots(Iterable<? extends AdSpot> values)
public ListAdSpotsResponse.Builder addAllAdSpots(Iterable<? extends AdSpot> values) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.ads.admanager.v1.AdSpot> |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
build()
public ListAdSpotsResponse build()| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse |
|
buildPartial()
public ListAdSpotsResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse |
|
clear()
public ListAdSpotsResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
clearAdSpots()
public ListAdSpotsResponse.Builder clearAdSpots() The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
clearNextPageToken()
public ListAdSpotsResponse.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 |
ListAdSpotsResponse.Builder |
This builder for chaining. |
clearTotalSize()
public ListAdSpotsResponse.Builder clearTotalSize() Total number of AdSpot objects.
If a filter was included in the request, this reflects the total number
after the filtering is applied.
total_size won't 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 |
ListAdSpotsResponse.Builder |
This builder for chaining. |
getAdSpots(int index)
public AdSpot getAdSpots(int index) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdSpot |
|
getAdSpotsBuilder(int index)
public AdSpot.Builder getAdSpotsBuilder(int index) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdSpot.Builder |
|
getAdSpotsBuilderList()
public List<AdSpot.Builder> getAdSpotsBuilderList() The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getAdSpotsCount()
public int getAdSpotsCount() The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getAdSpotsList()
public List<AdSpot> getAdSpotsList() The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Returns | |
|---|---|
| Type | Description |
List<AdSpot> |
|
getAdSpotsOrBuilder(int index)
public AdSpotOrBuilder getAdSpotsOrBuilder(int index) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AdSpotOrBuilder |
|
getAdSpotsOrBuilderList()
public List<? extends AdSpotOrBuilder> getAdSpotsOrBuilderList() The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.admanager.v1.AdSpotOrBuilder> |
|
getDefaultInstanceForType()
public ListAdSpotsResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse |
|
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. |
getTotalSize()
public int getTotalSize() Total number of AdSpot objects.
If a filter was included in the request, this reflects the total number
after the filtering is applied.
total_size won't 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ListAdSpotsResponse other)
public ListAdSpotsResponse.Builder mergeFrom(ListAdSpotsResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
ListAdSpotsResponse |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListAdSpotsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListAdSpotsResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
removeAdSpots(int index)
public ListAdSpotsResponse.Builder removeAdSpots(int index) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
setAdSpots(int index, AdSpot value)
public ListAdSpotsResponse.Builder setAdSpots(int index, AdSpot value) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AdSpot |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
setAdSpots(int index, AdSpot.Builder builderForValue)
public ListAdSpotsResponse.Builder setAdSpots(int index, AdSpot.Builder builderForValue) The AdSpot objects from the specified network.
repeated .google.ads.admanager.v1.AdSpot ad_spots = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AdSpot.Builder |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
|
setNextPageToken(String value)
public ListAdSpotsResponse.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 |
StringThe nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
This builder for chaining. |
setNextPageTokenBytes(ByteString value)
public ListAdSpotsResponse.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 |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
This builder for chaining. |
setTotalSize(int value)
public ListAdSpotsResponse.Builder setTotalSize(int value) Total number of AdSpot objects.
If a filter was included in the request, this reflects the total number
after the filtering is applied.
total_size won't 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 |
intThe totalSize to set. |
| Returns | |
|---|---|
| Type | Description |
ListAdSpotsResponse.Builder |
This builder for chaining. |