Class ChangeHistoryChange.Builder

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

public static final class ChangeHistoryChange.Builder extends com.google.protobuf.GeneratedMessage.Builder<ChangeHistoryChange.Builder> implements ChangeHistoryChangeOrBuilder
 A description of a change to a single Google Analytics resource.
 
Protobuf type google.analytics.admin.v1beta.ChangeHistoryChange
  • 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<ChangeHistoryChange.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<ChangeHistoryChange.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<ChangeHistoryChange.Builder>
    • getDefaultInstanceForType

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

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

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

      public ChangeHistoryChange.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<ChangeHistoryChange.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<ChangeHistoryChange.Builder>
    • mergeFrom

      public ChangeHistoryChange.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<ChangeHistoryChange.Builder>
      Throws:
      IOException
    • getResource

      public String getResource()
       Resource name of the resource whose changes are described by this entry.
       
      string resource = 1;
      Specified by:
      getResource in interface ChangeHistoryChangeOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       Resource name of the resource whose changes are described by this entry.
       
      string resource = 1;
      Specified by:
      getResourceBytes in interface ChangeHistoryChangeOrBuilder
      Returns:
      The bytes for resource.
    • setResource

      public ChangeHistoryChange.Builder setResource(String value)
       Resource name of the resource whose changes are described by this entry.
       
      string resource = 1;
      Parameters:
      value - The resource to set.
      Returns:
      This builder for chaining.
    • clearResource

      public ChangeHistoryChange.Builder clearResource()
       Resource name of the resource whose changes are described by this entry.
       
      string resource = 1;
      Returns:
      This builder for chaining.
    • setResourceBytes

      public ChangeHistoryChange.Builder setResourceBytes(com.google.protobuf.ByteString value)
       Resource name of the resource whose changes are described by this entry.
       
      string resource = 1;
      Parameters:
      value - The bytes for resource to set.
      Returns:
      This builder for chaining.
    • getActionValue

      public int getActionValue()
       The type of action that changed this resource.
       
      .google.analytics.admin.v1beta.ActionType action = 2;
      Specified by:
      getActionValue in interface ChangeHistoryChangeOrBuilder
      Returns:
      The enum numeric value on the wire for action.
    • setActionValue

      public ChangeHistoryChange.Builder setActionValue(int value)
       The type of action that changed this resource.
       
      .google.analytics.admin.v1beta.ActionType action = 2;
      Parameters:
      value - The enum numeric value on the wire for action to set.
      Returns:
      This builder for chaining.
    • getAction

      public ActionType getAction()
       The type of action that changed this resource.
       
      .google.analytics.admin.v1beta.ActionType action = 2;
      Specified by:
      getAction in interface ChangeHistoryChangeOrBuilder
      Returns:
      The action.
    • setAction

      public ChangeHistoryChange.Builder setAction(ActionType value)
       The type of action that changed this resource.
       
      .google.analytics.admin.v1beta.ActionType action = 2;
      Parameters:
      value - The action to set.
      Returns:
      This builder for chaining.
    • clearAction

      public ChangeHistoryChange.Builder clearAction()
       The type of action that changed this resource.
       
      .google.analytics.admin.v1beta.ActionType action = 2;
      Returns:
      This builder for chaining.
    • hasResourceBeforeChange

      public boolean hasResourceBeforeChange()
       Resource contents from before the change was made. If this resource was
       created in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
      Specified by:
      hasResourceBeforeChange in interface ChangeHistoryChangeOrBuilder
      Returns:
      Whether the resourceBeforeChange field is set.
    • getResourceBeforeChange

      public ChangeHistoryChange.ChangeHistoryResource getResourceBeforeChange()
       Resource contents from before the change was made. If this resource was
       created in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
      Specified by:
      getResourceBeforeChange in interface ChangeHistoryChangeOrBuilder
      Returns:
      The resourceBeforeChange.
    • setResourceBeforeChange

       Resource contents from before the change was made. If this resource was
       created in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
    • setResourceBeforeChange

      public ChangeHistoryChange.Builder setResourceBeforeChange(ChangeHistoryChange.ChangeHistoryResource.Builder builderForValue)
       Resource contents from before the change was made. If this resource was
       created in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
    • mergeResourceBeforeChange

       Resource contents from before the change was made. If this resource was
       created in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
    • clearResourceBeforeChange

      public ChangeHistoryChange.Builder clearResourceBeforeChange()
       Resource contents from before the change was made. If this resource was
       created in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
    • getResourceBeforeChangeBuilder

      public ChangeHistoryChange.ChangeHistoryResource.Builder getResourceBeforeChangeBuilder()
       Resource contents from before the change was made. If this resource was
       created in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
    • getResourceBeforeChangeOrBuilder

      public ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceBeforeChangeOrBuilder()
       Resource contents from before the change was made. If this resource was
       created in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
      Specified by:
      getResourceBeforeChangeOrBuilder in interface ChangeHistoryChangeOrBuilder
    • hasResourceAfterChange

      public boolean hasResourceAfterChange()
       Resource contents from after the change was made. If this resource was
       deleted in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
      Specified by:
      hasResourceAfterChange in interface ChangeHistoryChangeOrBuilder
      Returns:
      Whether the resourceAfterChange field is set.
    • getResourceAfterChange

      public ChangeHistoryChange.ChangeHistoryResource getResourceAfterChange()
       Resource contents from after the change was made. If this resource was
       deleted in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
      Specified by:
      getResourceAfterChange in interface ChangeHistoryChangeOrBuilder
      Returns:
      The resourceAfterChange.
    • setResourceAfterChange

       Resource contents from after the change was made. If this resource was
       deleted in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
    • setResourceAfterChange

      public ChangeHistoryChange.Builder setResourceAfterChange(ChangeHistoryChange.ChangeHistoryResource.Builder builderForValue)
       Resource contents from after the change was made. If this resource was
       deleted in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
    • mergeResourceAfterChange

       Resource contents from after the change was made. If this resource was
       deleted in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
    • clearResourceAfterChange

      public ChangeHistoryChange.Builder clearResourceAfterChange()
       Resource contents from after the change was made. If this resource was
       deleted in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
    • getResourceAfterChangeBuilder

      public ChangeHistoryChange.ChangeHistoryResource.Builder getResourceAfterChangeBuilder()
       Resource contents from after the change was made. If this resource was
       deleted in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
    • getResourceAfterChangeOrBuilder

      public ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceAfterChangeOrBuilder()
       Resource contents from after the change was made. If this resource was
       deleted in this change, this field will be missing.
       
      .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
      Specified by:
      getResourceAfterChangeOrBuilder in interface ChangeHistoryChangeOrBuilder