Class ChangeHistoryEvent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ChangeHistoryEvent.Builder>
com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder
All Implemented Interfaces:
ChangeHistoryEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ChangeHistoryEvent

public static final class ChangeHistoryEvent.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ChangeHistoryEvent.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ChangeHistoryEvent.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ChangeHistoryEvent.Builder>
    • getDefaultInstanceForType

      public ChangeHistoryEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ChangeHistoryEvent build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ChangeHistoryEvent buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ChangeHistoryEvent.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChangeHistoryEvent.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ChangeHistoryEvent.Builder>
    • mergeFrom

      public ChangeHistoryEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChangeHistoryEvent.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       ID of this change history event. This ID is unique across Google Analytics.
       
      string id = 1;
      Specified by:
      getId in interface ChangeHistoryEventOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       ID of this change history event. This ID is unique across Google Analytics.
       
      string id = 1;
      Specified by:
      getIdBytes in interface ChangeHistoryEventOrBuilder
      Returns:
      The bytes for id.
    • setId

      public ChangeHistoryEvent.Builder setId(String value)
       ID of this change history event. This ID is unique across Google Analytics.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ChangeHistoryEvent.Builder clearId()
       ID of this change history event. This ID is unique across Google Analytics.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public ChangeHistoryEvent.Builder setIdBytes(com.google.protobuf.ByteString value)
       ID of this change history event. This ID is unique across Google Analytics.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasChangeTime

      public boolean hasChangeTime()
       Time when change was made.
       
      .google.protobuf.Timestamp change_time = 2;
      Specified by:
      hasChangeTime in interface ChangeHistoryEventOrBuilder
      Returns:
      Whether the changeTime field is set.
    • getChangeTime

      public com.google.protobuf.Timestamp getChangeTime()
       Time when change was made.
       
      .google.protobuf.Timestamp change_time = 2;
      Specified by:
      getChangeTime in interface ChangeHistoryEventOrBuilder
      Returns:
      The changeTime.
    • setChangeTime

      public ChangeHistoryEvent.Builder setChangeTime(com.google.protobuf.Timestamp value)
       Time when change was made.
       
      .google.protobuf.Timestamp change_time = 2;
    • setChangeTime

      public ChangeHistoryEvent.Builder setChangeTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time when change was made.
       
      .google.protobuf.Timestamp change_time = 2;
    • mergeChangeTime

      public ChangeHistoryEvent.Builder mergeChangeTime(com.google.protobuf.Timestamp value)
       Time when change was made.
       
      .google.protobuf.Timestamp change_time = 2;
    • clearChangeTime

      public ChangeHistoryEvent.Builder clearChangeTime()
       Time when change was made.
       
      .google.protobuf.Timestamp change_time = 2;
    • getChangeTimeBuilder

      public com.google.protobuf.Timestamp.Builder getChangeTimeBuilder()
       Time when change was made.
       
      .google.protobuf.Timestamp change_time = 2;
    • getChangeTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder()
       Time when change was made.
       
      .google.protobuf.Timestamp change_time = 2;
      Specified by:
      getChangeTimeOrBuilder in interface ChangeHistoryEventOrBuilder
    • getActorTypeValue

      public int getActorTypeValue()
       The type of actor that made this change.
       
      .google.analytics.admin.v1alpha.ActorType actor_type = 3;
      Specified by:
      getActorTypeValue in interface ChangeHistoryEventOrBuilder
      Returns:
      The enum numeric value on the wire for actorType.
    • setActorTypeValue

      public ChangeHistoryEvent.Builder setActorTypeValue(int value)
       The type of actor that made this change.
       
      .google.analytics.admin.v1alpha.ActorType actor_type = 3;
      Parameters:
      value - The enum numeric value on the wire for actorType to set.
      Returns:
      This builder for chaining.
    • getActorType

      public ActorType getActorType()
       The type of actor that made this change.
       
      .google.analytics.admin.v1alpha.ActorType actor_type = 3;
      Specified by:
      getActorType in interface ChangeHistoryEventOrBuilder
      Returns:
      The actorType.
    • setActorType

      public ChangeHistoryEvent.Builder setActorType(ActorType value)
       The type of actor that made this change.
       
      .google.analytics.admin.v1alpha.ActorType actor_type = 3;
      Parameters:
      value - The actorType to set.
      Returns:
      This builder for chaining.
    • clearActorType

      public ChangeHistoryEvent.Builder clearActorType()
       The type of actor that made this change.
       
      .google.analytics.admin.v1alpha.ActorType actor_type = 3;
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getUserActorEmail in interface ChangeHistoryEventOrBuilder
      Returns:
      The userActorEmail.
    • getUserActorEmailBytes

      public com.google.protobuf.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;
      Specified by:
      getUserActorEmailBytes in interface ChangeHistoryEventOrBuilder
      Returns:
      The bytes for userActorEmail.
    • setUserActorEmail

      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;
      Parameters:
      value - The userActorEmail to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setUserActorEmailBytes

      public ChangeHistoryEvent.Builder setUserActorEmailBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for userActorEmail to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getChangesFiltered in interface ChangeHistoryEventOrBuilder
      Returns:
      The changesFiltered.
    • setChangesFiltered

      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;
      Parameters:
      value - The changesFiltered to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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;
      Specified by:
      getChangesList in interface ChangeHistoryEventOrBuilder
    • 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;
      Specified by:
      getChangesCount in interface ChangeHistoryEventOrBuilder
    • getChanges

      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;
      Specified by:
      getChanges in interface ChangeHistoryEventOrBuilder
    • setChanges

      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;
    • setChanges

      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;
    • addChanges

       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;
    • addChanges

      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;
    • addChanges

      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;
    • addChanges

      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;
    • addAllChanges

      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;
    • 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;
    • removeChanges

      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;
    • getChangesBuilder

      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;
    • getChangesOrBuilder

      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;
      Specified by:
      getChangesOrBuilder in interface ChangeHistoryEventOrBuilder
    • 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;
      Specified by:
      getChangesOrBuilderList in interface ChangeHistoryEventOrBuilder
    • 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;
    • addChangesBuilder

      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;
    • 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;