public static final class ListSitesResponse.Builder extends GeneratedMessageV3.Builder<ListSitesResponse.Builder> implements ListSitesResponseOrBuilder Response object for ListSitesRequest containing matching Site objects.
Protobuf type google.ads.admanager.v1.ListSitesResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListSitesResponse.BuilderImplements
ListSitesResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSites(Iterable<? extends Site> values)
public ListSitesResponse.Builder addAllSites(Iterable<? extends Site> values) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.ads.admanager.v1.Site> |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListSitesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
addSites(Site value)
public ListSitesResponse.Builder addSites(Site value) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Site |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
addSites(Site.Builder builderForValue)
public ListSitesResponse.Builder addSites(Site.Builder builderForValue) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Site.Builder |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
addSites(int index, Site value)
public ListSitesResponse.Builder addSites(int index, Site value) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Site |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
addSites(int index, Site.Builder builderForValue)
public ListSitesResponse.Builder addSites(int index, Site.Builder builderForValue) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Site.Builder |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
addSitesBuilder()
public Site.Builder addSitesBuilder() The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Returns | |
|---|---|
| Type | Description |
Site.Builder |
|
addSitesBuilder(int index)
public Site.Builder addSitesBuilder(int index) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Site.Builder |
|
build()
public ListSitesResponse build()| Returns | |
|---|---|
| Type | Description |
ListSitesResponse |
|
buildPartial()
public ListSitesResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
ListSitesResponse |
|
clear()
public ListSitesResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public ListSitesResponse.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
clearNextPageToken()
public ListSitesResponse.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 |
ListSitesResponse.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ListSitesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
clearSites()
public ListSitesResponse.Builder clearSites() The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
clearTotalSize()
public ListSitesResponse.Builder clearTotalSize() Total number of Site 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 |
ListSitesResponse.Builder |
This builder for chaining. |
clone()
public ListSitesResponse.Builder clone()| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
getDefaultInstanceForType()
public ListSitesResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListSitesResponse |
|
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. |
getSites(int index)
public Site getSites(int index) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Site |
|
getSitesBuilder(int index)
public Site.Builder getSitesBuilder(int index) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Site.Builder |
|
getSitesBuilderList()
public List<Site.Builder> getSitesBuilderList() The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSitesCount()
public int getSitesCount() The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSitesList()
public List<Site> getSitesList() The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Returns | |
|---|---|
| Type | Description |
List<Site> |
|
getSitesOrBuilder(int index)
public SiteOrBuilder getSitesOrBuilder(int index) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SiteOrBuilder |
|
getSitesOrBuilderList()
public List<? extends SiteOrBuilder> getSitesOrBuilderList() The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.admanager.v1.SiteOrBuilder> |
|
getTotalSize()
public int getTotalSize() Total number of Site 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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ListSitesResponse other)
public ListSitesResponse.Builder mergeFrom(ListSitesResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
ListSitesResponse |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListSitesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListSitesResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListSitesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
removeSites(int index)
public ListSitesResponse.Builder removeSites(int index) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListSitesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
setNextPageToken(String value)
public ListSitesResponse.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 |
ListSitesResponse.Builder |
This builder for chaining. |
setNextPageTokenBytes(ByteString value)
public ListSitesResponse.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 |
ListSitesResponse.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListSitesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
setSites(int index, Site value)
public ListSitesResponse.Builder setSites(int index, Site value) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Site |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
setSites(int index, Site.Builder builderForValue)
public ListSitesResponse.Builder setSites(int index, Site.Builder builderForValue) The Site objects from the specified network.
repeated .google.ads.admanager.v1.Site sites = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Site.Builder |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|
setTotalSize(int value)
public ListSitesResponse.Builder setTotalSize(int value) Total number of Site 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 |
ListSitesResponse.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ListSitesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ListSitesResponse.Builder |
|