Class ChangeHistoryEvent.Builder (0.56.0)

public static final class ChangeHistoryEvent.Builder extends GeneratedMessageV3.Builder<ChangeHistoryEvent.Builder> implements ChangeHistoryEventOrBuilder

A set of changes within a Google Analytics account or its child properties that resulted from the same cause. Common causes would be updates made in the Google Analytics UI, changes from customer support, or automatic Google Analytics system changes.

Protobuf type google.analytics.admin.v1alpha.ChangeHistoryEvent

Static Methods

getDescriptor()

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

Methods

addAllChanges(Iterable<? extends ChangeHistoryChange> values)

public ChangeHistoryEvent.Builder addAllChanges(Iterable<? extends ChangeHistoryChange> values)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameter
Name Description
values Iterable<? extends com.google.analytics.admin.v1alpha.ChangeHistoryChange>
Returns
Type Description
ChangeHistoryEvent.Builder

addChanges(ChangeHistoryChange value)

public ChangeHistoryEvent.Builder addChanges(ChangeHistoryChange value)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameter
Name Description
value ChangeHistoryChange
Returns
Type Description
ChangeHistoryEvent.Builder

addChanges(ChangeHistoryChange.Builder builderForValue)

public ChangeHistoryEvent.Builder addChanges(ChangeHistoryChange.Builder builderForValue)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameter
Name Description
builderForValue ChangeHistoryChange.Builder
Returns
Type Description
ChangeHistoryEvent.Builder

addChanges(int index, ChangeHistoryChange value)

public ChangeHistoryEvent.Builder addChanges(int index, ChangeHistoryChange value)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameters
Name Description
index int
value ChangeHistoryChange
Returns
Type Description
ChangeHistoryEvent.Builder

addChanges(int index, ChangeHistoryChange.Builder builderForValue)

public ChangeHistoryEvent.Builder addChanges(int index, ChangeHistoryChange.Builder builderForValue)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameters
Name Description
index int
builderForValue ChangeHistoryChange.Builder
Returns
Type Description
ChangeHistoryEvent.Builder

addChangesBuilder()

public ChangeHistoryChange.Builder addChangesBuilder()

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Returns
Type Description
ChangeHistoryChange.Builder

addChangesBuilder(int index)

public ChangeHistoryChange.Builder addChangesBuilder(int index)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameter
Name Description
index int
Returns
Type Description
ChangeHistoryChange.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChangeHistoryEvent build()
Returns
Type Description
ChangeHistoryEvent

buildPartial()

public ChangeHistoryEvent buildPartial()
Returns
Type Description
ChangeHistoryEvent

clear()

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

clearActorType()

public ChangeHistoryEvent.Builder clearActorType()

The type of actor that made this change.

.google.analytics.admin.v1alpha.ActorType actor_type = 3;

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.

clearChangeTime()

public ChangeHistoryEvent.Builder clearChangeTime()

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Returns
Type Description
ChangeHistoryEvent.Builder

clearChanges()

public ChangeHistoryEvent.Builder clearChanges()

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Returns
Type Description
ChangeHistoryEvent.Builder

clearChangesFiltered()

public ChangeHistoryEvent.Builder clearChangesFiltered()

If true, then the list of changes returned was filtered, and does not represent all changes that occurred in this event.

bool changes_filtered = 5;

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public ChangeHistoryEvent.Builder clearId()

ID of this change history event. This ID is unique across Google Analytics.

string id = 1;

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserActorEmail()

public ChangeHistoryEvent.Builder clearUserActorEmail()

Email address of the Google account that made the change. This will be a valid email address if the actor field is set to USER, and empty otherwise. Google accounts that have been deleted will cause an error.

string user_actor_email = 4;

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.

clone()

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

getActorType()

public ActorType getActorType()

The type of actor that made this change.

.google.analytics.admin.v1alpha.ActorType actor_type = 3;

Returns
Type Description
ActorType

The actorType.

getActorTypeValue()

public int getActorTypeValue()

The type of actor that made this change.

.google.analytics.admin.v1alpha.ActorType actor_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for actorType.

getChangeTime()

public Timestamp getChangeTime()

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Returns
Type Description
Timestamp

The changeTime.

getChangeTimeBuilder()

public Timestamp.Builder getChangeTimeBuilder()

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Returns
Type Description
Builder

getChangeTimeOrBuilder()

public TimestampOrBuilder getChangeTimeOrBuilder()

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Returns
Type Description
TimestampOrBuilder

getChanges(int index)

public ChangeHistoryChange getChanges(int index)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameter
Name Description
index int
Returns
Type Description
ChangeHistoryChange

getChangesBuilder(int index)

public ChangeHistoryChange.Builder getChangesBuilder(int index)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameter
Name Description
index int
Returns
Type Description
ChangeHistoryChange.Builder

getChangesBuilderList()

public List<ChangeHistoryChange.Builder> getChangesBuilderList()

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Returns
Type Description
List<Builder>

getChangesCount()

public int getChangesCount()

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Returns
Type Description
int

getChangesFiltered()

public boolean getChangesFiltered()

If true, then the list of changes returned was filtered, and does not represent all changes that occurred in this event.

bool changes_filtered = 5;

Returns
Type Description
boolean

The changesFiltered.

getChangesList()

public List<ChangeHistoryChange> getChangesList()

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Returns
Type Description
List<ChangeHistoryChange>

getChangesOrBuilder(int index)

public ChangeHistoryChangeOrBuilder getChangesOrBuilder(int index)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameter
Name Description
index int
Returns
Type Description
ChangeHistoryChangeOrBuilder

getChangesOrBuilderList()

public List<? extends ChangeHistoryChangeOrBuilder> getChangesOrBuilderList()

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Returns
Type Description
List<? extends com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder>

getDefaultInstanceForType()

public ChangeHistoryEvent getDefaultInstanceForType()
Returns
Type Description
ChangeHistoryEvent

getDescriptorForType()

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

getId()

public String getId()

ID of this change history event. This ID is unique across Google Analytics.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

ID of this change history event. This ID is unique across Google Analytics.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getUserActorEmail()

public String getUserActorEmail()

Email address of the Google account that made the change. This will be a valid email address if the actor field is set to USER, and empty otherwise. Google accounts that have been deleted will cause an error.

string user_actor_email = 4;

Returns
Type Description
String

The userActorEmail.

getUserActorEmailBytes()

public ByteString getUserActorEmailBytes()

Email address of the Google account that made the change. This will be a valid email address if the actor field is set to USER, and empty otherwise. Google accounts that have been deleted will cause an error.

string user_actor_email = 4;

Returns
Type Description
ByteString

The bytes for userActorEmail.

hasChangeTime()

public boolean hasChangeTime()

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Returns
Type Description
boolean

Whether the changeTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeChangeTime(Timestamp value)

public ChangeHistoryEvent.Builder mergeChangeTime(Timestamp value)

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
ChangeHistoryEvent.Builder

mergeFrom(ChangeHistoryEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeChanges(int index)

public ChangeHistoryEvent.Builder removeChanges(int index)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameter
Name Description
index int
Returns
Type Description
ChangeHistoryEvent.Builder

setActorType(ActorType value)

public ChangeHistoryEvent.Builder setActorType(ActorType value)

The type of actor that made this change.

.google.analytics.admin.v1alpha.ActorType actor_type = 3;

Parameter
Name Description
value ActorType

The actorType to set.

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.

setActorTypeValue(int value)

public ChangeHistoryEvent.Builder setActorTypeValue(int value)

The type of actor that made this change.

.google.analytics.admin.v1alpha.ActorType actor_type = 3;

Parameter
Name Description
value int

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

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.

setChangeTime(Timestamp value)

public ChangeHistoryEvent.Builder setChangeTime(Timestamp value)

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
ChangeHistoryEvent.Builder

setChangeTime(Timestamp.Builder builderForValue)

public ChangeHistoryEvent.Builder setChangeTime(Timestamp.Builder builderForValue)

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ChangeHistoryEvent.Builder

setChanges(int index, ChangeHistoryChange value)

public ChangeHistoryEvent.Builder setChanges(int index, ChangeHistoryChange value)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameters
Name Description
index int
value ChangeHistoryChange
Returns
Type Description
ChangeHistoryEvent.Builder

setChanges(int index, ChangeHistoryChange.Builder builderForValue)

public ChangeHistoryEvent.Builder setChanges(int index, ChangeHistoryChange.Builder builderForValue)

A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.

repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;

Parameters
Name Description
index int
builderForValue ChangeHistoryChange.Builder
Returns
Type Description
ChangeHistoryEvent.Builder

setChangesFiltered(boolean value)

public ChangeHistoryEvent.Builder setChangesFiltered(boolean value)

If true, then the list of changes returned was filtered, and does not represent all changes that occurred in this event.

bool changes_filtered = 5;

Parameter
Name Description
value boolean

The changesFiltered to set.

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public ChangeHistoryEvent.Builder setId(String value)

ID of this change history event. This ID is unique across Google Analytics.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.

setIdBytes(ByteString value)

public ChangeHistoryEvent.Builder setIdBytes(ByteString value)

ID of this change history event. This ID is unique across Google Analytics.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserActorEmail(String value)

public ChangeHistoryEvent.Builder setUserActorEmail(String value)

Email address of the Google account that made the change. This will be a valid email address if the actor field is set to USER, and empty otherwise. Google accounts that have been deleted will cause an error.

string user_actor_email = 4;

Parameter
Name Description
value String

The userActorEmail to set.

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.

setUserActorEmailBytes(ByteString value)

public ChangeHistoryEvent.Builder setUserActorEmailBytes(ByteString value)

Email address of the Google account that made the change. This will be a valid email address if the actor field is set to USER, and empty otherwise. Google accounts that have been deleted will cause an error.

string user_actor_email = 4;

Parameter
Name Description
value ByteString

The bytes for userActorEmail to set.

Returns
Type Description
ChangeHistoryEvent.Builder

This builder for chaining.