Class ChangeHistoryChange.Builder (0.55.0)

public static final class ChangeHistoryChange.Builder extends GeneratedMessageV3.Builder<ChangeHistoryChange.Builder> implements ChangeHistoryChangeOrBuilder

A description of a change to a single Google Analytics resource.

Protobuf type google.analytics.admin.v1alpha.ChangeHistoryChange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChangeHistoryChange build()
Returns
Type Description
ChangeHistoryChange

buildPartial()

public ChangeHistoryChange buildPartial()
Returns
Type Description
ChangeHistoryChange

clear()

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

clearAction()

public ChangeHistoryChange.Builder clearAction()

The type of action that changed this resource.

.google.analytics.admin.v1alpha.ActionType action = 2;

Returns
Type Description
ChangeHistoryChange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResource()

public ChangeHistoryChange.Builder clearResource()

Resource name of the resource whose changes are described by this entry.

string resource = 1;

Returns
Type Description
ChangeHistoryChange.Builder

This builder for chaining.

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;

Returns
Type Description
ChangeHistoryChange.Builder

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;

Returns
Type Description
ChangeHistoryChange.Builder

clone()

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

getAction()

public ActionType getAction()

The type of action that changed this resource.

.google.analytics.admin.v1alpha.ActionType action = 2;

Returns
Type Description
ActionType

The action.

getActionValue()

public int getActionValue()

The type of action that changed this resource.

.google.analytics.admin.v1alpha.ActionType action = 2;

Returns
Type Description
int

The enum numeric value on the wire for action.

getDefaultInstanceForType()

public ChangeHistoryChange getDefaultInstanceForType()
Returns
Type Description
ChangeHistoryChange

getDescriptorForType()

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

getResource()

public String getResource()

Resource name of the resource whose changes are described by this entry.

string resource = 1;

Returns
Type Description
String

The resource.

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;

Returns
Type Description
ChangeHistoryChange.ChangeHistoryResource

The resourceAfterChange.

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;

Returns
Type Description
ChangeHistoryChange.ChangeHistoryResource.Builder

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;

Returns
Type Description
ChangeHistoryChange.ChangeHistoryResourceOrBuilder

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;

Returns
Type Description
ChangeHistoryChange.ChangeHistoryResource

The resourceBeforeChange.

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;

Returns
Type Description
ChangeHistoryChange.ChangeHistoryResource.Builder

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;

Returns
Type Description
ChangeHistoryChange.ChangeHistoryResourceOrBuilder

getResourceBytes()

public ByteString getResourceBytes()

Resource name of the resource whose changes are described by this entry.

string resource = 1;

Returns
Type Description
ByteString

The bytes for resource.

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;

Returns
Type Description
boolean

Whether the resourceAfterChange field is set.

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;

Returns
Type Description
boolean

Whether the resourceBeforeChange field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ChangeHistoryChange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResourceAfterChange(ChangeHistoryChange.ChangeHistoryResource value)

public ChangeHistoryChange.Builder mergeResourceAfterChange(ChangeHistoryChange.ChangeHistoryResource value)

Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing.

.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;

Parameter
Name Description
value ChangeHistoryChange.ChangeHistoryResource
Returns
Type Description
ChangeHistoryChange.Builder

mergeResourceBeforeChange(ChangeHistoryChange.ChangeHistoryResource value)

public ChangeHistoryChange.Builder mergeResourceBeforeChange(ChangeHistoryChange.ChangeHistoryResource value)

Resource contents from before the change was made. If this resource was created in this change, this field will be missing.

.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;

Parameter
Name Description
value ChangeHistoryChange.ChangeHistoryResource
Returns
Type Description
ChangeHistoryChange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAction(ActionType value)

public ChangeHistoryChange.Builder setAction(ActionType value)

The type of action that changed this resource.

.google.analytics.admin.v1alpha.ActionType action = 2;

Parameter
Name Description
value ActionType

The action to set.

Returns
Type Description
ChangeHistoryChange.Builder

This builder for chaining.

setActionValue(int value)

public ChangeHistoryChange.Builder setActionValue(int value)

The type of action that changed this resource.

.google.analytics.admin.v1alpha.ActionType action = 2;

Parameter
Name Description
value int

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

Returns
Type Description
ChangeHistoryChange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResource(String value)

public ChangeHistoryChange.Builder setResource(String value)

Resource name of the resource whose changes are described by this entry.

string resource = 1;

Parameter
Name Description
value String

The resource to set.

Returns
Type Description
ChangeHistoryChange.Builder

This builder for chaining.

setResourceAfterChange(ChangeHistoryChange.ChangeHistoryResource value)

public ChangeHistoryChange.Builder setResourceAfterChange(ChangeHistoryChange.ChangeHistoryResource value)

Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing.

.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;

Parameter
Name Description
value ChangeHistoryChange.ChangeHistoryResource
Returns
Type Description
ChangeHistoryChange.Builder

setResourceAfterChange(ChangeHistoryChange.ChangeHistoryResource.Builder builderForValue)

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;

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

setResourceBeforeChange(ChangeHistoryChange.ChangeHistoryResource value)

public ChangeHistoryChange.Builder setResourceBeforeChange(ChangeHistoryChange.ChangeHistoryResource value)

Resource contents from before the change was made. If this resource was created in this change, this field will be missing.

.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;

Parameter
Name Description
value ChangeHistoryChange.ChangeHistoryResource
Returns
Type Description
ChangeHistoryChange.Builder

setResourceBeforeChange(ChangeHistoryChange.ChangeHistoryResource.Builder builderForValue)

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.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;

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

setResourceBytes(ByteString value)

public ChangeHistoryChange.Builder setResourceBytes(ByteString value)

Resource name of the resource whose changes are described by this entry.

string resource = 1;

Parameter
Name Description
value ByteString

The bytes for resource to set.

Returns
Type Description
ChangeHistoryChange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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