Class AccessDateRange.Builder (0.41.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.v1alpha.AccessDateRange

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AccessDateRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AccessDateRange.Builder
Overrides

build()

public AccessDateRange build()
Returns
TypeDescription
AccessDateRange

buildPartial()

public AccessDateRange buildPartial()
Returns
TypeDescription
AccessDateRange

clear()

public AccessDateRange.Builder clear()
Returns
TypeDescription
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
TypeDescription
AccessDateRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AccessDateRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AccessDateRange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AccessDateRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AccessDateRange.Builder

This builder for chaining.

clone()

public AccessDateRange.Builder clone()
Returns
TypeDescription
AccessDateRange.Builder
Overrides

getDefaultInstanceForType()

public AccessDateRange getDefaultInstanceForType()
Returns
TypeDescription
AccessDateRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for startDate.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AccessDateRange other)

public AccessDateRange.Builder mergeFrom(AccessDateRange other)
Parameter
NameDescription
otherAccessDateRange
Returns
TypeDescription
AccessDateRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AccessDateRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessDateRange.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AccessDateRange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AccessDateRange.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccessDateRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The endDate to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for endDate to set.

Returns
TypeDescription
AccessDateRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AccessDateRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AccessDateRange.Builder
Overrides

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

public AccessDateRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The startDate to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for startDate to set.

Returns
TypeDescription
AccessDateRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AccessDateRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AccessDateRange.Builder
Overrides