public static final class DateRange.Builder extends GeneratedMessage.Builder<DateRange.Builder> implements DateRangeOrBuilderA date range with fixed start and end dates (e.g. 2021-06-01 - 2021-06-30).
Protobuf type google.ads.admanager.v1.DateRange
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DateRange.BuilderImplements
DateRangeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DateRange build()| Returns | |
|---|---|
| Type | Description |
DateRange |
|
buildPartial()
public DateRange buildPartial()| Returns | |
|---|---|
| Type | Description |
DateRange |
|
clear()
public DateRange.Builder clear()| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
clearEndDate()
public DateRange.Builder clearEndDate()The end of the date range.
.google.type.Date end_date = 2;
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
clearStartDate()
public DateRange.Builder clearStartDate()The start of the date range.
.google.type.Date start_date = 1;
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
getDefaultInstanceForType()
public DateRange getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DateRange |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndDate()
public Date getEndDate()The end of the date range.
.google.type.Date end_date = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The endDate. |
getEndDateBuilder()
public Date.Builder getEndDateBuilder()The end of the date range.
.google.type.Date end_date = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getEndDateOrBuilder()
public DateOrBuilder getEndDateOrBuilder()The end of the date range.
.google.type.Date end_date = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getStartDate()
public Date getStartDate()The start of the date range.
.google.type.Date start_date = 1;
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The startDate. |
getStartDateBuilder()
public Date.Builder getStartDateBuilder()The start of the date range.
.google.type.Date start_date = 1;
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getStartDateOrBuilder()
public DateOrBuilder getStartDateOrBuilder()The start of the date range.
.google.type.Date start_date = 1;
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
hasEndDate()
public boolean hasEndDate()The end of the date range.
.google.type.Date end_date = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the endDate field is set. |
hasStartDate()
public boolean hasStartDate()The start of the date range.
.google.type.Date start_date = 1;
| 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 DateRange.Builder mergeEndDate(Date value)The end of the date range.
.google.type.Date end_date = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
mergeFrom(DateRange other)
public DateRange.Builder mergeFrom(DateRange other)| Parameter | |
|---|---|
| Name | Description |
other |
DateRange |
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DateRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DateRange.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
mergeStartDate(Date value)
public DateRange.Builder mergeStartDate(Date value)The start of the date range.
.google.type.Date start_date = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
setEndDate(Date value)
public DateRange.Builder setEndDate(Date value)The end of the date range.
.google.type.Date end_date = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
setEndDate(Date.Builder builderForValue)
public DateRange.Builder setEndDate(Date.Builder builderForValue)The end of the date range.
.google.type.Date end_date = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
setStartDate(Date value)
public DateRange.Builder setStartDate(Date value)The start of the date range.
.google.type.Date start_date = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|
setStartDate(Date.Builder builderForValue)
public DateRange.Builder setStartDate(Date.Builder builderForValue)The start of the date range.
.google.type.Date start_date = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
DateRange.Builder |
|