Class UpdateCalculatedMetricRequest.Builder (0.45.0)

public static final class UpdateCalculatedMetricRequest.Builder extends GeneratedMessageV3.Builder<UpdateCalculatedMetricRequest.Builder> implements UpdateCalculatedMetricRequestOrBuilder

Request message for UpdateCalculatedMetric RPC.

Protobuf type google.analytics.admin.v1alpha.UpdateCalculatedMetricRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCalculatedMetricRequest build()
Returns
TypeDescription
UpdateCalculatedMetricRequest

buildPartial()

public UpdateCalculatedMetricRequest buildPartial()
Returns
TypeDescription
UpdateCalculatedMetricRequest

clear()

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

clearCalculatedMetric()

public UpdateCalculatedMetricRequest.Builder clearCalculatedMetric()

Required. The CalculatedMetric to update

.google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateCalculatedMetricRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateCalculatedMetricRequest.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
UpdateCalculatedMetricRequest.Builder

clone()

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

getCalculatedMetric()

public CalculatedMetric getCalculatedMetric()

Required. The CalculatedMetric to update

.google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CalculatedMetric

The calculatedMetric.

getCalculatedMetricBuilder()

public CalculatedMetric.Builder getCalculatedMetricBuilder()

Required. The CalculatedMetric to update

.google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CalculatedMetric.Builder

getCalculatedMetricOrBuilder()

public CalculatedMetricOrBuilder getCalculatedMetricOrBuilder()

Required. The CalculatedMetric to update

.google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CalculatedMetricOrBuilder

getDefaultInstanceForType()

public UpdateCalculatedMetricRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateCalculatedMetricRequest

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

hasCalculatedMetric()

public boolean hasCalculatedMetric()

Required. The CalculatedMetric to update

.google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the calculatedMetric 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

mergeCalculatedMetric(CalculatedMetric value)

public UpdateCalculatedMetricRequest.Builder mergeCalculatedMetric(CalculatedMetric value)

Required. The CalculatedMetric to update

.google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCalculatedMetric
Returns
TypeDescription
UpdateCalculatedMetricRequest.Builder

mergeFrom(UpdateCalculatedMetricRequest other)

public UpdateCalculatedMetricRequest.Builder mergeFrom(UpdateCalculatedMetricRequest other)
Parameter
NameDescription
otherUpdateCalculatedMetricRequest
Returns
TypeDescription
UpdateCalculatedMetricRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateCalculatedMetricRequest.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
UpdateCalculatedMetricRequest.Builder

setCalculatedMetric(CalculatedMetric value)

public UpdateCalculatedMetricRequest.Builder setCalculatedMetric(CalculatedMetric value)

Required. The CalculatedMetric to update

.google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCalculatedMetric
Returns
TypeDescription
UpdateCalculatedMetricRequest.Builder

setCalculatedMetric(CalculatedMetric.Builder builderForValue)

public UpdateCalculatedMetricRequest.Builder setCalculatedMetric(CalculatedMetric.Builder builderForValue)

Required. The CalculatedMetric to update

.google.analytics.admin.v1alpha.CalculatedMetric calculated_metric = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCalculatedMetric.Builder
Returns
TypeDescription
UpdateCalculatedMetricRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateCalculatedMetricRequest.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
UpdateCalculatedMetricRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCalculatedMetricRequest.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
UpdateCalculatedMetricRequest.Builder