Class AccessDateRange.Builder (0.56.0)

public static final class AccessDateRange.Builder extends GeneratedMessageV3.Builder<AccessDateRange.Builder> implements AccessDateRangeOrBuilder

A contiguous range of days: startDate, startDate + 1, ..., endDate.

Protobuf type google.analytics.admin.v1beta.AccessDateRange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessDateRange build()
Returns
Type Description
AccessDateRange

buildPartial()

public AccessDateRange buildPartial()
Returns
Type Description
AccessDateRange

clear()

public AccessDateRange.Builder clear()
Returns
Type Description
AccessDateRange.Builder
Overrides

clearEndDate()

public AccessDateRange.Builder clearEndDate()

The inclusive end date for the query in the format YYYY-MM-DD. Cannot be before startDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.

string end_date = 2;

Returns
Type Description
AccessDateRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartDate()

public AccessDateRange.Builder clearStartDate()

The inclusive start date for the query in the format YYYY-MM-DD. Cannot be after endDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.

string start_date = 1;

Returns
Type Description
AccessDateRange.Builder

This builder for chaining.

clone()

public AccessDateRange.Builder clone()
Returns
Type Description
AccessDateRange.Builder
Overrides

getDefaultInstanceForType()

public AccessDateRange getDefaultInstanceForType()
Returns
Type Description
AccessDateRange

getDescriptorForType()

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

getEndDate()

public String getEndDate()

The inclusive end date for the query in the format YYYY-MM-DD. Cannot be before startDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.

string end_date = 2;

Returns
Type Description
String

The endDate.

getEndDateBytes()

public ByteString getEndDateBytes()

The inclusive end date for the query in the format YYYY-MM-DD. Cannot be before startDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.

string end_date = 2;

Returns
Type Description
ByteString

The bytes for endDate.

getStartDate()

public String getStartDate()

The inclusive start date for the query in the format YYYY-MM-DD. Cannot be after endDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.

string start_date = 1;

Returns
Type Description
String

The startDate.

getStartDateBytes()

public ByteString getStartDateBytes()

The inclusive start date for the query in the format YYYY-MM-DD. Cannot be after endDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.

string start_date = 1;

Returns
Type Description
ByteString

The bytes for startDate.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AccessDateRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndDate(String value)

public AccessDateRange.Builder setEndDate(String value)

The inclusive end date for the query in the format YYYY-MM-DD. Cannot be before startDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.

string end_date = 2;

Parameter
Name Description
value String

The endDate to set.

Returns
Type Description
AccessDateRange.Builder

This builder for chaining.

setEndDateBytes(ByteString value)

public AccessDateRange.Builder setEndDateBytes(ByteString value)

The inclusive end date for the query in the format YYYY-MM-DD. Cannot be before startDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.

string end_date = 2;

Parameter
Name Description
value ByteString

The bytes for endDate to set.

Returns
Type Description
AccessDateRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartDate(String value)

public AccessDateRange.Builder setStartDate(String value)

The inclusive start date for the query in the format YYYY-MM-DD. Cannot be after endDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.

string start_date = 1;

Parameter
Name Description
value String

The startDate to set.

Returns
Type Description
AccessDateRange.Builder

This builder for chaining.

setStartDateBytes(ByteString value)

public AccessDateRange.Builder setStartDateBytes(ByteString value)

The inclusive start date for the query in the format YYYY-MM-DD. Cannot be after endDate. The format NdaysAgo, yesterday, or today is also accepted, and in that case, the date is inferred based on the current time in the request's time zone.

string start_date = 1;

Parameter
Name Description
value ByteString

The bytes for startDate to set.

Returns
Type Description
AccessDateRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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