Class Report.DateRange (0.11.0)

public static final class Report.DateRange extends GeneratedMessageV3 implements Report.DateRangeOrBuilder

A date range for a report.

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

Static Fields

FIXED_FIELD_NUMBER

public static final int FIXED_FIELD_NUMBER
Field Value
Type Description
int

RELATIVE_FIELD_NUMBER

public static final int RELATIVE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Report.DateRange getDefaultInstance()
Returns
Type Description
Report.DateRange

getDescriptor()

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

newBuilder()

public static Report.DateRange.Builder newBuilder()
Returns
Type Description
Report.DateRange.Builder

newBuilder(Report.DateRange prototype)

public static Report.DateRange.Builder newBuilder(Report.DateRange prototype)
Parameter
Name Description
prototype Report.DateRange
Returns
Type Description
Report.DateRange.Builder

parseDelimitedFrom(InputStream input)

public static Report.DateRange parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Report.DateRange
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Report.DateRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.DateRange
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Report.DateRange parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Report.DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Report.DateRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Report.DateRange parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Report.DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Report.DateRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Report.DateRange parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Report.DateRange
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Report.DateRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.DateRange
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Report.DateRange parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Report.DateRange
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Report.DateRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.DateRange
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Report.DateRange parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Report.DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Report.DateRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Report.DateRange
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Report.DateRange> parser()
Returns
Type Description
Parser<DateRange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDateRangeTypeCase()

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

getDefaultInstanceForType()

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

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.

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

getParserForType()

public Parser<Report.DateRange> getParserForType()
Returns
Type Description
Parser<DateRange>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Report.DateRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Report.DateRange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException