Class CreateCalculatedMetricRequest.Builder (0.46.0)

public static final class CreateCalculatedMetricRequest.Builder extends GeneratedMessageV3.Builder<CreateCalculatedMetricRequest.Builder> implements CreateCalculatedMetricRequestOrBuilder

Request message for CreateCalculatedMetric RPC.

Protobuf type google.analytics.admin.v1alpha.CreateCalculatedMetricRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCalculatedMetricRequest build()
Returns
TypeDescription
CreateCalculatedMetricRequest

buildPartial()

public CreateCalculatedMetricRequest buildPartial()
Returns
TypeDescription
CreateCalculatedMetricRequest

clear()

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

clearCalculatedMetric()

public CreateCalculatedMetricRequest.Builder clearCalculatedMetric()

Required. The CalculatedMetric to create.

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

Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

clearCalculatedMetricId()

public CreateCalculatedMetricRequest.Builder clearCalculatedMetricId()

Required. The ID to use for the calculated metric which will become the final component of the calculated metric's resource name.

This value should be 1-80 characters and valid characters are /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique between all calculated metrics under a property. The calculated_metric_id is used when referencing this calculated metric from external APIs, for example, "calcMetric:{calculated_metric_id}".

string calculated_metric_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateCalculatedMetricRequest.Builder clearParent()

Required. Format: properties/{property_id} Example: properties/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

This builder for chaining.

clone()

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

getCalculatedMetric()

public CalculatedMetric getCalculatedMetric()

Required. The CalculatedMetric to create.

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

Returns
TypeDescription
CalculatedMetric

The calculatedMetric.

getCalculatedMetricBuilder()

public CalculatedMetric.Builder getCalculatedMetricBuilder()

Required. The CalculatedMetric to create.

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

Returns
TypeDescription
CalculatedMetric.Builder

getCalculatedMetricId()

public String getCalculatedMetricId()

Required. The ID to use for the calculated metric which will become the final component of the calculated metric's resource name.

This value should be 1-80 characters and valid characters are /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique between all calculated metrics under a property. The calculated_metric_id is used when referencing this calculated metric from external APIs, for example, "calcMetric:{calculated_metric_id}".

string calculated_metric_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The calculatedMetricId.

getCalculatedMetricIdBytes()

public ByteString getCalculatedMetricIdBytes()

Required. The ID to use for the calculated metric which will become the final component of the calculated metric's resource name.

This value should be 1-80 characters and valid characters are /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique between all calculated metrics under a property. The calculated_metric_id is used when referencing this calculated metric from external APIs, for example, "calcMetric:{calculated_metric_id}".

string calculated_metric_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for calculatedMetricId.

getCalculatedMetricOrBuilder()

public CalculatedMetricOrBuilder getCalculatedMetricOrBuilder()

Required. The CalculatedMetric to create.

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

Returns
TypeDescription
CalculatedMetricOrBuilder

getDefaultInstanceForType()

public CreateCalculatedMetricRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateCalculatedMetricRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Format: properties/{property_id} Example: properties/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Format: properties/{property_id} Example: properties/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

hasCalculatedMetric()

public boolean hasCalculatedMetric()

Required. The CalculatedMetric to create.

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

Returns
TypeDescription
boolean

Whether the calculatedMetric 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 CreateCalculatedMetricRequest.Builder mergeCalculatedMetric(CalculatedMetric value)

Required. The CalculatedMetric to create.

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

Parameter
NameDescription
valueCalculatedMetric
Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

mergeFrom(CreateCalculatedMetricRequest other)

public CreateCalculatedMetricRequest.Builder mergeFrom(CreateCalculatedMetricRequest other)
Parameter
NameDescription
otherCreateCalculatedMetricRequest
Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCalculatedMetric(CalculatedMetric value)

public CreateCalculatedMetricRequest.Builder setCalculatedMetric(CalculatedMetric value)

Required. The CalculatedMetric to create.

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

Parameter
NameDescription
valueCalculatedMetric
Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

setCalculatedMetric(CalculatedMetric.Builder builderForValue)

public CreateCalculatedMetricRequest.Builder setCalculatedMetric(CalculatedMetric.Builder builderForValue)

Required. The CalculatedMetric to create.

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

Parameter
NameDescription
builderForValueCalculatedMetric.Builder
Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

setCalculatedMetricId(String value)

public CreateCalculatedMetricRequest.Builder setCalculatedMetricId(String value)

Required. The ID to use for the calculated metric which will become the final component of the calculated metric's resource name.

This value should be 1-80 characters and valid characters are /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique between all calculated metrics under a property. The calculated_metric_id is used when referencing this calculated metric from external APIs, for example, "calcMetric:{calculated_metric_id}".

string calculated_metric_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The calculatedMetricId to set.

Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

This builder for chaining.

setCalculatedMetricIdBytes(ByteString value)

public CreateCalculatedMetricRequest.Builder setCalculatedMetricIdBytes(ByteString value)

Required. The ID to use for the calculated metric which will become the final component of the calculated metric's resource name.

This value should be 1-80 characters and valid characters are /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique between all calculated metrics under a property. The calculated_metric_id is used when referencing this calculated metric from external APIs, for example, "calcMetric:{calculated_metric_id}".

string calculated_metric_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for calculatedMetricId to set.

Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateCalculatedMetricRequest.Builder setParent(String value)

Required. Format: properties/{property_id} Example: properties/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCalculatedMetricRequest.Builder setParentBytes(ByteString value)

Required. Format: properties/{property_id} Example: properties/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateCalculatedMetricRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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