Class ChangeHistoryEvent.Builder (0.27.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.v1beta.ChangeHistoryEvent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.analytics.admin.v1beta.ChangeHistoryChange>
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameter
NameDescription
valueChangeHistoryChange
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameter
NameDescription
builderForValueChangeHistoryChange.Builder
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameters
NameDescription
indexint
valueChangeHistoryChange
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameters
NameDescription
indexint
builderForValueChangeHistoryChange.Builder
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
ChangeHistoryChange.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChangeHistoryEvent build()
Returns
TypeDescription
ChangeHistoryEvent

buildPartial()

public ChangeHistoryEvent buildPartial()
Returns
TypeDescription
ChangeHistoryEvent

clear()

public ChangeHistoryEvent.Builder clear()
Returns
TypeDescription
ChangeHistoryEvent.Builder
Overrides

clearActorType()

public ChangeHistoryEvent.Builder clearActorType()

The type of actor that made this change.

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

Returns
TypeDescription
ChangeHistoryEvent.Builder

This builder for chaining.

clearChangeTime()

public ChangeHistoryEvent.Builder clearChangeTime()

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Returns
TypeDescription
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
TypeDescription
ChangeHistoryEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ChangeHistoryEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ChangeHistoryEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getActorType()

public ActorType getActorType()

The type of actor that made this change.

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

Returns
TypeDescription
ActorType

The actorType.

getActorTypeValue()

public int getActorTypeValue()

The type of actor that made this change.

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

Returns
TypeDescription
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
TypeDescription
Timestamp

The changeTime.

getChangeTimeBuilder()

public Timestamp.Builder getChangeTimeBuilder()

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Returns
TypeDescription
Builder

getChangeTimeOrBuilder()

public TimestampOrBuilder getChangeTimeOrBuilder()

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Returns
TypeDescription
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
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Returns
TypeDescription
List<? extends com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder>

getDefaultInstanceForType()

public ChangeHistoryEvent getDefaultInstanceForType()
Returns
TypeDescription
ChangeHistoryEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

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

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for userActorEmail.

hasChangeTime()

public boolean hasChangeTime()

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Returns
TypeDescription
boolean

Whether the changeTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeChangeTime(Timestamp value)

public ChangeHistoryEvent.Builder mergeChangeTime(Timestamp value)

Time when change was made.

.google.protobuf.Timestamp change_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ChangeHistoryEvent.Builder

mergeFrom(ChangeHistoryEvent other)

public ChangeHistoryEvent.Builder mergeFrom(ChangeHistoryEvent other)
Parameter
NameDescription
otherChangeHistoryEvent
Returns
TypeDescription
ChangeHistoryEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChangeHistoryEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
ChangeHistoryEvent.Builder

setActorType(ActorType value)

public ChangeHistoryEvent.Builder setActorType(ActorType value)

The type of actor that made this change.

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

Parameter
NameDescription
valueActorType

The actorType to set.

Returns
TypeDescription
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.v1beta.ActorType actor_type = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameters
NameDescription
indexint
valueChangeHistoryChange
Returns
TypeDescription
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.v1beta.ChangeHistoryChange changes = 6;

Parameters
NameDescription
indexint
builderForValueChangeHistoryChange.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The changesFiltered to set.

Returns
TypeDescription
ChangeHistoryEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ChangeHistoryEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

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

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ChangeHistoryEvent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The userActorEmail to set.

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

The bytes for userActorEmail to set.

Returns
TypeDescription
ChangeHistoryEvent.Builder

This builder for chaining.