Class Property.Builder (0.56.0)

public static final class Property.Builder extends GeneratedMessageV3.Builder<Property.Builder> implements PropertyOrBuilder

A resource message representing a Google Analytics GA4 property.

Protobuf type google.analytics.admin.v1beta.Property

Implements

PropertyOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Property build()
Returns
Type Description
Property

buildPartial()

public Property buildPartial()
Returns
Type Description
Property

clear()

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

clearAccount()

public Property.Builder clearAccount()

Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"

string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
Property.Builder

This builder for chaining.

clearCreateTime()

public Property.Builder clearCreateTime()

Output only. Time when the entity was originally created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Property.Builder

clearCurrencyCode()

public Property.Builder clearCurrencyCode()

The currency type used in reports involving monetary values.

Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"

string currency_code = 8;

Returns
Type Description
Property.Builder

This builder for chaining.

clearDeleteTime()

public Property.Builder clearDeleteTime()

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Property.Builder

clearDisplayName()

public Property.Builder clearDisplayName()

Required. Human-readable display name for this property.

The max allowed display name length is 100 UTF-16 code units.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Property.Builder

This builder for chaining.

clearExpireTime()

public Property.Builder clearExpireTime()

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Property.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIndustryCategory()

public Property.Builder clearIndustryCategory()

Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK

.google.analytics.admin.v1beta.IndustryCategory industry_category = 6;

Returns
Type Description
Property.Builder

This builder for chaining.

clearName()

public Property.Builder clearName()

Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Property.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public Property.Builder clearParent()

Immutable. Resource name of this property's logical parent.

Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"

string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Property.Builder

This builder for chaining.

clearPropertyType()

public Property.Builder clearPropertyType()

Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created with the Google Analytics Admin API.

.google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Property.Builder

This builder for chaining.

clearServiceLevel()

public Property.Builder clearServiceLevel()

Output only. The Google Analytics service level that applies to this property.

.google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Property.Builder

This builder for chaining.

clearTimeZone()

public Property.Builder clearTimeZone()

Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes.

NOTE: Changing the time zone only affects data going forward, and is not applied retroactively.

Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"

string time_zone = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Property.Builder

This builder for chaining.

clearUpdateTime()

public Property.Builder clearUpdateTime()

Output only. Time when entity payload fields were last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Property.Builder

clone()

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

getAccount()

public String getAccount()

Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"

string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The account.

getAccountBytes()

public ByteString getAccountBytes()

Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"

string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for account.

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when the entity was originally created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when the entity was originally created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the entity was originally created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCurrencyCode()

public String getCurrencyCode()

The currency type used in reports involving monetary values.

Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"

string currency_code = 8;

Returns
Type Description
String

The currencyCode.

getCurrencyCodeBytes()

public ByteString getCurrencyCodeBytes()

The currency type used in reports involving monetary values.

Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"

string currency_code = 8;

Returns
Type Description
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

public Property getDefaultInstanceForType()
Returns
Type Description
Property

getDeleteTime()

public Timestamp getDeleteTime()

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. Human-readable display name for this property.

The max allowed display name length is 100 UTF-16 code units.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. Human-readable display name for this property.

The max allowed display name length is 100 UTF-16 code units.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getExpireTime()

public Timestamp getExpireTime()

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getIndustryCategory()

public IndustryCategory getIndustryCategory()

Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK

.google.analytics.admin.v1beta.IndustryCategory industry_category = 6;

Returns
Type Description
IndustryCategory

The industryCategory.

getIndustryCategoryValue()

public int getIndustryCategoryValue()

Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK

.google.analytics.admin.v1beta.IndustryCategory industry_category = 6;

Returns
Type Description
int

The enum numeric value on the wire for industryCategory.

getName()

public String getName()

Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getParent()

public String getParent()

Immutable. Resource name of this property's logical parent.

Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"

string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Immutable. Resource name of this property's logical parent.

Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"

string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for parent.

getPropertyType()

public PropertyType getPropertyType()

Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created with the Google Analytics Admin API.

.google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
PropertyType

The propertyType.

getPropertyTypeValue()

public int getPropertyTypeValue()

Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created with the Google Analytics Admin API.

.google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for propertyType.

getServiceLevel()

public ServiceLevel getServiceLevel()

Output only. The Google Analytics service level that applies to this property.

.google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceLevel

The serviceLevel.

getServiceLevelValue()

public int getServiceLevelValue()

Output only. The Google Analytics service level that applies to this property.

.google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for serviceLevel.

getTimeZone()

public String getTimeZone()

Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes.

NOTE: Changing the time zone only affects data going forward, and is not applied retroactively.

Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"

string time_zone = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes.

NOTE: Changing the time zone only affects data going forward, and is not applied retroactively.

Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"

string time_zone = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for timeZone.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when entity payload fields were last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when entity payload fields were last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when entity payload fields were last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the entity was originally created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deleteTime field is set.

hasExpireTime()

public boolean hasExpireTime()

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the expireTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when entity payload fields were last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Property.Builder mergeCreateTime(Timestamp value)

Output only. Time when the entity was originally created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Property.Builder

mergeDeleteTime(Timestamp value)

public Property.Builder mergeDeleteTime(Timestamp value)

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Property.Builder

mergeExpireTime(Timestamp value)

public Property.Builder mergeExpireTime(Timestamp value)

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Property.Builder

mergeFrom(Property other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Property.Builder mergeUpdateTime(Timestamp value)

Output only. Time when entity payload fields were last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Property.Builder

setAccount(String value)

public Property.Builder setAccount(String value)

Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"

string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The account to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setAccountBytes(ByteString value)

public Property.Builder setAccountBytes(ByteString value)

Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"

string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for account to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Property.Builder setCreateTime(Timestamp value)

Output only. Time when the entity was originally created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Property.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Property.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when the entity was originally created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Property.Builder

setCurrencyCode(String value)

public Property.Builder setCurrencyCode(String value)

The currency type used in reports involving monetary values.

Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"

string currency_code = 8;

Parameter
Name Description
value String

The currencyCode to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setCurrencyCodeBytes(ByteString value)

public Property.Builder setCurrencyCodeBytes(ByteString value)

The currency type used in reports involving monetary values.

Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"

string currency_code = 8;

Parameter
Name Description
value ByteString

The bytes for currencyCode to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setDeleteTime(Timestamp value)

public Property.Builder setDeleteTime(Timestamp value)

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Property.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public Property.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Property.Builder

setDisplayName(String value)

public Property.Builder setDisplayName(String value)

Required. Human-readable display name for this property.

The max allowed display name length is 100 UTF-16 code units.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Property.Builder setDisplayNameBytes(ByteString value)

Required. Human-readable display name for this property.

The max allowed display name length is 100 UTF-16 code units.

string display_name = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public Property.Builder setExpireTime(Timestamp value)

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Property.Builder

setExpireTime(Timestamp.Builder builderForValue)

public Property.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Property.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIndustryCategory(IndustryCategory value)

public Property.Builder setIndustryCategory(IndustryCategory value)

Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK

.google.analytics.admin.v1beta.IndustryCategory industry_category = 6;

Parameter
Name Description
value IndustryCategory

The industryCategory to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setIndustryCategoryValue(int value)

public Property.Builder setIndustryCategoryValue(int value)

Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK

.google.analytics.admin.v1beta.IndustryCategory industry_category = 6;

Parameter
Name Description
value int

The enum numeric value on the wire for industryCategory to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setName(String value)

public Property.Builder setName(String value)

Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Property.Builder setNameBytes(ByteString value)

Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setParent(String value)

public Property.Builder setParent(String value)

Immutable. Resource name of this property's logical parent.

Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"

string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setParentBytes(ByteString value)

public Property.Builder setParentBytes(ByteString value)

Immutable. Resource name of this property's logical parent.

Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"

string parent = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setPropertyType(PropertyType value)

public Property.Builder setPropertyType(PropertyType value)

Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created with the Google Analytics Admin API.

.google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value PropertyType

The propertyType to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setPropertyTypeValue(int value)

public Property.Builder setPropertyTypeValue(int value)

Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created with the Google Analytics Admin API.

.google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

The enum numeric value on the wire for propertyType to set.

Returns
Type Description
Property.Builder

This builder for chaining.

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

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

setServiceLevel(ServiceLevel value)

public Property.Builder setServiceLevel(ServiceLevel value)

Output only. The Google Analytics service level that applies to this property.

.google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ServiceLevel

The serviceLevel to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setServiceLevelValue(int value)

public Property.Builder setServiceLevelValue(int value)

Output only. The Google Analytics service level that applies to this property.

.google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for serviceLevel to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setTimeZone(String value)

public Property.Builder setTimeZone(String value)

Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes.

NOTE: Changing the time zone only affects data going forward, and is not applied retroactively.

Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"

string time_zone = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The timeZone to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setTimeZoneBytes(ByteString value)

public Property.Builder setTimeZoneBytes(ByteString value)

Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes.

NOTE: Changing the time zone only affects data going forward, and is not applied retroactively.

Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"

string time_zone = 7 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for timeZone to set.

Returns
Type Description
Property.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Property.Builder setUpdateTime(Timestamp value)

Output only. Time when entity payload fields were last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Property.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Property.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when entity payload fields were last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Property.Builder