Class ChangeHistoryChange.Builder (0.43.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChangeHistoryChange build()
Returns
TypeDescription
ChangeHistoryChange

buildPartial()

public ChangeHistoryChange buildPartial()
Returns
TypeDescription
ChangeHistoryChange

clear()

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

clearAction()

public ChangeHistoryChange.Builder clearAction()

The type of action that changed this resource.

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

Returns
TypeDescription
ChangeHistoryChange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ChangeHistoryChange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ChangeHistoryChange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ChangeHistoryChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ChangeHistoryChange.Builder
Overrides

clearResource()

public ChangeHistoryChange.Builder clearResource()

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

string resource = 1;

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

clone()

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

getAction()

public ActionType getAction()

The type of action that changed this resource.

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

Returns
TypeDescription
ActionType

The action.

getActionValue()

public int getActionValue()

The type of action that changed this resource.

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

Returns
TypeDescription
int

The enum numeric value on the wire for action.

getDefaultInstanceForType()

public ChangeHistoryChange getDefaultInstanceForType()
Returns
TypeDescription
ChangeHistoryChange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResource()

public String getResource()

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

string resource = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ChangeHistoryChange.ChangeHistoryResourceOrBuilder

getResourceBytes()

public ByteString getResourceBytes()

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

string resource = 1;

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

Whether the resourceBeforeChange field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ChangeHistoryChange other)

public ChangeHistoryChange.Builder mergeFrom(ChangeHistoryChange other)
Parameter
NameDescription
otherChangeHistoryChange
Returns
TypeDescription
ChangeHistoryChange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ChangeHistoryChange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueChangeHistoryChange.ChangeHistoryResource
Returns
TypeDescription
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
NameDescription
valueChangeHistoryChange.ChangeHistoryResource
Returns
TypeDescription
ChangeHistoryChange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChangeHistoryChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueActionType

The action to set.

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

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

Returns
TypeDescription
ChangeHistoryChange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ChangeHistoryChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The resource to set.

Returns
TypeDescription
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
NameDescription
valueChangeHistoryChange.ChangeHistoryResource
Returns
TypeDescription
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
NameDescription
builderForValueChangeHistoryChange.ChangeHistoryResource.Builder
Returns
TypeDescription
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
NameDescription
valueChangeHistoryChange.ChangeHistoryResource
Returns
TypeDescription
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
NameDescription
builderForValueChangeHistoryChange.ChangeHistoryResource.Builder
Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resource to set.

Returns
TypeDescription
ChangeHistoryChange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ChangeHistoryChange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ChangeHistoryChange.Builder
Overrides