Class ReportingDataAnnotation.DateRange.Builder (0.95.0)

public static final class ReportingDataAnnotation.DateRange.Builder extends GeneratedMessage.Builder<ReportingDataAnnotation.DateRange.Builder> implements ReportingDataAnnotation.DateRangeOrBuilder

Represents a Reporting Data Annotation's date range, both start and end dates are inclusive. Time zones are based on the parent property.

Protobuf type google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearEndDate()

public ReportingDataAnnotation.DateRange.Builder clearEndDate()

Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReportingDataAnnotation.DateRange.Builder

clearStartDate()

public ReportingDataAnnotation.DateRange.Builder clearStartDate()

Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReportingDataAnnotation.DateRange.Builder

getDefaultInstanceForType()

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

getDescriptorForType()

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

getEndDate()

public Date getEndDate()

Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date

The endDate.

getEndDateBuilder()

public Date.Builder getEndDateBuilder()

Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date.Builder

getEndDateOrBuilder()

public DateOrBuilder getEndDateOrBuilder()

Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DateOrBuilder

getStartDate()

public Date getStartDate()

Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date

The startDate.

getStartDateBuilder()

public Date.Builder getStartDateBuilder()

Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date.Builder

getStartDateOrBuilder()

public DateOrBuilder getStartDateOrBuilder()

Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DateOrBuilder

hasEndDate()

public boolean hasEndDate()

Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endDate field is set.

hasStartDate()

public boolean hasStartDate()

Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startDate field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndDate(Date value)

public ReportingDataAnnotation.DateRange.Builder mergeEndDate(Date value)

Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ReportingDataAnnotation.DateRange.Builder

mergeFrom(ReportingDataAnnotation.DateRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartDate(Date value)

public ReportingDataAnnotation.DateRange.Builder mergeStartDate(Date value)

Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ReportingDataAnnotation.DateRange.Builder

setEndDate(Date value)

public ReportingDataAnnotation.DateRange.Builder setEndDate(Date value)

Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ReportingDataAnnotation.DateRange.Builder

setEndDate(Date.Builder builderForValue)

public ReportingDataAnnotation.DateRange.Builder setEndDate(Date.Builder builderForValue)

Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.

.google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
ReportingDataAnnotation.DateRange.Builder

setStartDate(Date value)

public ReportingDataAnnotation.DateRange.Builder setStartDate(Date value)

Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ReportingDataAnnotation.DateRange.Builder

setStartDate(Date.Builder builderForValue)

public ReportingDataAnnotation.DateRange.Builder setStartDate(Date.Builder builderForValue)

Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.

.google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
ReportingDataAnnotation.DateRange.Builder