Class Report.DateRange.Builder (0.11.0)

public static final class Report.DateRange.Builder extends GeneratedMessageV3.Builder<Report.DateRange.Builder> implements Report.DateRangeOrBuilder

A date range for a report.

Protobuf type google.ads.admanager.v1.Report.DateRange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Report.DateRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Report.DateRange.Builder
Overrides

build()

public Report.DateRange build()
Returns
Type Description
Report.DateRange

buildPartial()

public Report.DateRange buildPartial()
Returns
Type Description
Report.DateRange

clear()

public Report.DateRange.Builder clear()
Returns
Type Description
Report.DateRange.Builder
Overrides

clearDateRangeType()

public Report.DateRange.Builder clearDateRangeType()
Returns
Type Description
Report.DateRange.Builder

clearField(Descriptors.FieldDescriptor field)

public Report.DateRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Report.DateRange.Builder
Overrides

clearFixed()

public Report.DateRange.Builder clearFixed()

A fixed date range.

.google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1;

Returns
Type Description
Report.DateRange.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Report.DateRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Report.DateRange.Builder
Overrides

clearRelative()

public Report.DateRange.Builder clearRelative()

A relative date range.

.google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2;

Returns
Type Description
Report.DateRange.Builder

This builder for chaining.

clone()

public Report.DateRange.Builder clone()
Returns
Type Description
Report.DateRange.Builder
Overrides

getDateRangeTypeCase()

public Report.DateRange.DateRangeTypeCase getDateRangeTypeCase()
Returns
Type Description
Report.DateRange.DateRangeTypeCase

getDefaultInstanceForType()

public Report.DateRange getDefaultInstanceForType()
Returns
Type Description
Report.DateRange

getDescriptorForType()

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

getFixed()

public Report.DateRange.FixedDateRange getFixed()

A fixed date range.

.google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1;

Returns
Type Description
Report.DateRange.FixedDateRange

The fixed.

getFixedBuilder()

public Report.DateRange.FixedDateRange.Builder getFixedBuilder()

A fixed date range.

.google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1;

Returns
Type Description
Report.DateRange.FixedDateRange.Builder

getFixedOrBuilder()

public Report.DateRange.FixedDateRangeOrBuilder getFixedOrBuilder()

A fixed date range.

.google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1;

Returns
Type Description
Report.DateRange.FixedDateRangeOrBuilder

getRelative()

public Report.DateRange.RelativeDateRange getRelative()

A relative date range.

.google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2;

Returns
Type Description
Report.DateRange.RelativeDateRange

The relative.

getRelativeValue()

public int getRelativeValue()

A relative date range.

.google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2;

Returns
Type Description
int

The enum numeric value on the wire for relative.

hasFixed()

public boolean hasFixed()

A fixed date range.

.google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1;

Returns
Type Description
boolean

Whether the fixed field is set.

hasRelative()

public boolean hasRelative()

A relative date range.

.google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2;

Returns
Type Description
boolean

Whether the relative field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFixed(Report.DateRange.FixedDateRange value)

public Report.DateRange.Builder mergeFixed(Report.DateRange.FixedDateRange value)

A fixed date range.

.google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1;

Parameter
Name Description
value Report.DateRange.FixedDateRange
Returns
Type Description
Report.DateRange.Builder

mergeFrom(Report.DateRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Report.DateRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Report.DateRange.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Report.DateRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Report.DateRange.Builder
Overrides

setFixed(Report.DateRange.FixedDateRange value)

public Report.DateRange.Builder setFixed(Report.DateRange.FixedDateRange value)

A fixed date range.

.google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1;

Parameter
Name Description
value Report.DateRange.FixedDateRange
Returns
Type Description
Report.DateRange.Builder

setFixed(Report.DateRange.FixedDateRange.Builder builderForValue)

public Report.DateRange.Builder setFixed(Report.DateRange.FixedDateRange.Builder builderForValue)

A fixed date range.

.google.ads.admanager.v1.Report.DateRange.FixedDateRange fixed = 1;

Parameter
Name Description
builderForValue Report.DateRange.FixedDateRange.Builder
Returns
Type Description
Report.DateRange.Builder

setRelative(Report.DateRange.RelativeDateRange value)

public Report.DateRange.Builder setRelative(Report.DateRange.RelativeDateRange value)

A relative date range.

.google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2;

Parameter
Name Description
value Report.DateRange.RelativeDateRange

The relative to set.

Returns
Type Description
Report.DateRange.Builder

This builder for chaining.

setRelativeValue(int value)

public Report.DateRange.Builder setRelativeValue(int value)

A relative date range.

.google.ads.admanager.v1.Report.DateRange.RelativeDateRange relative = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for relative to set.

Returns
Type Description
Report.DateRange.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Report.DateRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Report.DateRange.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Report.DateRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Report.DateRange.Builder
Overrides