Class UpdateCustomMetricRequest.Builder (0.21.0)

public static final class UpdateCustomMetricRequest.Builder extends GeneratedMessageV3.Builder<UpdateCustomMetricRequest.Builder> implements UpdateCustomMetricRequestOrBuilder

Request message for UpdateCustomMetric RPC.

Protobuf type google.analytics.admin.v1alpha.UpdateCustomMetricRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCustomMetricRequest build()
Returns
TypeDescription
UpdateCustomMetricRequest

buildPartial()

public UpdateCustomMetricRequest buildPartial()
Returns
TypeDescription
UpdateCustomMetricRequest

clear()

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

clearCustomMetric()

public UpdateCustomMetricRequest.Builder clearCustomMetric()

The CustomMetric to update

.google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;

Returns
TypeDescription
UpdateCustomMetricRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateCustomMetricRequest.Builder clearUpdateMask()

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateCustomMetricRequest.Builder

clone()

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

getCustomMetric()

public CustomMetric getCustomMetric()

The CustomMetric to update

.google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;

Returns
TypeDescription
CustomMetric

The customMetric.

getCustomMetricBuilder()

public CustomMetric.Builder getCustomMetricBuilder()

The CustomMetric to update

.google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;

Returns
TypeDescription
CustomMetric.Builder

getCustomMetricOrBuilder()

public CustomMetricOrBuilder getCustomMetricOrBuilder()

The CustomMetric to update

.google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;

Returns
TypeDescription
CustomMetricOrBuilder

getDefaultInstanceForType()

public UpdateCustomMetricRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateCustomMetricRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMaskOrBuilder

hasCustomMetric()

public boolean hasCustomMetric()

The CustomMetric to update

.google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;

Returns
TypeDescription
boolean

Whether the customMetric field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomMetric(CustomMetric value)

public UpdateCustomMetricRequest.Builder mergeCustomMetric(CustomMetric value)

The CustomMetric to update

.google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;

Parameter
NameDescription
valueCustomMetric
Returns
TypeDescription
UpdateCustomMetricRequest.Builder

mergeFrom(UpdateCustomMetricRequest other)

public UpdateCustomMetricRequest.Builder mergeFrom(UpdateCustomMetricRequest other)
Parameter
NameDescription
otherUpdateCustomMetricRequest
Returns
TypeDescription
UpdateCustomMetricRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCustomMetricRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateCustomMetricRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateCustomMetricRequest.Builder mergeUpdateMask(FieldMask value)

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateCustomMetricRequest.Builder

setCustomMetric(CustomMetric value)

public UpdateCustomMetricRequest.Builder setCustomMetric(CustomMetric value)

The CustomMetric to update

.google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;

Parameter
NameDescription
valueCustomMetric
Returns
TypeDescription
UpdateCustomMetricRequest.Builder

setCustomMetric(CustomMetric.Builder builderForValue)

public UpdateCustomMetricRequest.Builder setCustomMetric(CustomMetric.Builder builderForValue)

The CustomMetric to update

.google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;

Parameter
NameDescription
builderForValueCustomMetric.Builder
Returns
TypeDescription
UpdateCustomMetricRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public UpdateCustomMetricRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateCustomMetricRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateCustomMetricRequest.Builder setUpdateMask(FieldMask value)

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateCustomMetricRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCustomMetricRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateCustomMetricRequest.Builder