Class ListForecastAdjustmentsResponse.Builder (0.62.0)

public static final class ListForecastAdjustmentsResponse.Builder extends GeneratedMessage.Builder<ListForecastAdjustmentsResponse.Builder> implements ListForecastAdjustmentsResponseOrBuilder

Response object for ListForecastAdjustmentsRequest containing matching ForecastAdjustment objects.

Protobuf type google.ads.admanager.v1.ListForecastAdjustmentsResponse

Static Methods

getDescriptor()

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

Methods

addAllForecastAdjustments(Iterable<? extends ForecastAdjustment> values)

public ListForecastAdjustmentsResponse.Builder addAllForecastAdjustments(Iterable<? extends ForecastAdjustment> values)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.ForecastAdjustment>
Returns
Type Description
ListForecastAdjustmentsResponse.Builder

addForecastAdjustments(ForecastAdjustment value)

public ListForecastAdjustmentsResponse.Builder addForecastAdjustments(ForecastAdjustment value)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameter
Name Description
value ForecastAdjustment
Returns
Type Description
ListForecastAdjustmentsResponse.Builder

addForecastAdjustments(ForecastAdjustment.Builder builderForValue)

public ListForecastAdjustmentsResponse.Builder addForecastAdjustments(ForecastAdjustment.Builder builderForValue)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameter
Name Description
builderForValue ForecastAdjustment.Builder
Returns
Type Description
ListForecastAdjustmentsResponse.Builder

addForecastAdjustments(int index, ForecastAdjustment value)

public ListForecastAdjustmentsResponse.Builder addForecastAdjustments(int index, ForecastAdjustment value)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameters
Name Description
index int
value ForecastAdjustment
Returns
Type Description
ListForecastAdjustmentsResponse.Builder

addForecastAdjustments(int index, ForecastAdjustment.Builder builderForValue)

public ListForecastAdjustmentsResponse.Builder addForecastAdjustments(int index, ForecastAdjustment.Builder builderForValue)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameters
Name Description
index int
builderForValue ForecastAdjustment.Builder
Returns
Type Description
ListForecastAdjustmentsResponse.Builder

addForecastAdjustmentsBuilder()

public ForecastAdjustment.Builder addForecastAdjustmentsBuilder()

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Returns
Type Description
ForecastAdjustment.Builder

addForecastAdjustmentsBuilder(int index)

public ForecastAdjustment.Builder addForecastAdjustmentsBuilder(int index)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameter
Name Description
index int
Returns
Type Description
ForecastAdjustment.Builder

build()

public ListForecastAdjustmentsResponse build()
Returns
Type Description
ListForecastAdjustmentsResponse

buildPartial()

public ListForecastAdjustmentsResponse buildPartial()
Returns
Type Description
ListForecastAdjustmentsResponse

clear()

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

clearForecastAdjustments()

public ListForecastAdjustmentsResponse.Builder clearForecastAdjustments()

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Returns
Type Description
ListForecastAdjustmentsResponse.Builder

clearNextPageToken()

public ListForecastAdjustmentsResponse.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
ListForecastAdjustmentsResponse.Builder

This builder for chaining.

clearTotalSize()

public ListForecastAdjustmentsResponse.Builder clearTotalSize()

Total number of ForecastAdjustment 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
ListForecastAdjustmentsResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListForecastAdjustmentsResponse getDefaultInstanceForType()
Returns
Type Description
ListForecastAdjustmentsResponse

getDescriptorForType()

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

getForecastAdjustments(int index)

public ForecastAdjustment getForecastAdjustments(int index)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameter
Name Description
index int
Returns
Type Description
ForecastAdjustment

getForecastAdjustmentsBuilder(int index)

public ForecastAdjustment.Builder getForecastAdjustmentsBuilder(int index)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameter
Name Description
index int
Returns
Type Description
ForecastAdjustment.Builder

getForecastAdjustmentsBuilderList()

public List<ForecastAdjustment.Builder> getForecastAdjustmentsBuilderList()

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Returns
Type Description
List<Builder>

getForecastAdjustmentsCount()

public int getForecastAdjustmentsCount()

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Returns
Type Description
int

getForecastAdjustmentsList()

public List<ForecastAdjustment> getForecastAdjustmentsList()

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Returns
Type Description
List<ForecastAdjustment>

getForecastAdjustmentsOrBuilder(int index)

public ForecastAdjustmentOrBuilder getForecastAdjustmentsOrBuilder(int index)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameter
Name Description
index int
Returns
Type Description
ForecastAdjustmentOrBuilder

getForecastAdjustmentsOrBuilderList()

public List<? extends ForecastAdjustmentOrBuilder> getForecastAdjustmentsOrBuilderList()

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Returns
Type Description
List<? extends com.google.ads.admanager.v1.ForecastAdjustmentOrBuilder>

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 ForecastAdjustment 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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListForecastAdjustmentsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListForecastAdjustmentsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListForecastAdjustmentsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

removeForecastAdjustments(int index)

public ListForecastAdjustmentsResponse.Builder removeForecastAdjustments(int index)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameter
Name Description
index int
Returns
Type Description
ListForecastAdjustmentsResponse.Builder

setForecastAdjustments(int index, ForecastAdjustment value)

public ListForecastAdjustmentsResponse.Builder setForecastAdjustments(int index, ForecastAdjustment value)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameters
Name Description
index int
value ForecastAdjustment
Returns
Type Description
ListForecastAdjustmentsResponse.Builder

setForecastAdjustments(int index, ForecastAdjustment.Builder builderForValue)

public ListForecastAdjustmentsResponse.Builder setForecastAdjustments(int index, ForecastAdjustment.Builder builderForValue)

The ForecastAdjustment objects from the specified network.

repeated .google.ads.admanager.v1.ForecastAdjustment forecast_adjustments = 1;

Parameters
Name Description
index int
builderForValue ForecastAdjustment.Builder
Returns
Type Description
ListForecastAdjustmentsResponse.Builder

setNextPageToken(String value)

public ListForecastAdjustmentsResponse.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
ListForecastAdjustmentsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListForecastAdjustmentsResponse.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
ListForecastAdjustmentsResponse.Builder

This builder for chaining.

setTotalSize(int value)

public ListForecastAdjustmentsResponse.Builder setTotalSize(int value)

Total number of ForecastAdjustment 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 int

The totalSize to set.

Returns
Type Description
ListForecastAdjustmentsResponse.Builder

This builder for chaining.