public static final class ReportingDataAnnotation.DateRange.Builder extends GeneratedMessage.Builder<ReportingDataAnnotation.DateRange.Builder> implements ReportingDataAnnotation.DateRangeOrBuilderRepresents 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ReportingDataAnnotation.DateRange.BuilderImplements
ReportingDataAnnotation.DateRangeOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
|