Class CreateCustomDimensionRequest.Builder (0.56.0)

public static final class CreateCustomDimensionRequest.Builder extends GeneratedMessageV3.Builder<CreateCustomDimensionRequest.Builder> implements CreateCustomDimensionRequestOrBuilder

Request message for CreateCustomDimension RPC.

Protobuf type google.analytics.admin.v1beta.CreateCustomDimensionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCustomDimensionRequest build()
Returns
Type Description
CreateCustomDimensionRequest

buildPartial()

public CreateCustomDimensionRequest buildPartial()
Returns
Type Description
CreateCustomDimensionRequest

clear()

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

clearCustomDimension()

public CreateCustomDimensionRequest.Builder clearCustomDimension()

Required. The CustomDimension to create.

.google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateCustomDimensionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateCustomDimensionRequest.Builder clearParent()

Required. Example format: properties/1234

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

Returns
Type Description
CreateCustomDimensionRequest.Builder

This builder for chaining.

clone()

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

getCustomDimension()

public CustomDimension getCustomDimension()

Required. The CustomDimension to create.

.google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomDimension

The customDimension.

getCustomDimensionBuilder()

public CustomDimension.Builder getCustomDimensionBuilder()

Required. The CustomDimension to create.

.google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomDimension.Builder

getCustomDimensionOrBuilder()

public CustomDimensionOrBuilder getCustomDimensionOrBuilder()

Required. The CustomDimension to create.

.google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomDimensionOrBuilder

getDefaultInstanceForType()

public CreateCustomDimensionRequest getDefaultInstanceForType()
Returns
Type Description
CreateCustomDimensionRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Example format: properties/1234

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Example format: properties/1234

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

Returns
Type Description
ByteString

The bytes for parent.

hasCustomDimension()

public boolean hasCustomDimension()

Required. The CustomDimension to create.

.google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the customDimension field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomDimension(CustomDimension value)

public CreateCustomDimensionRequest.Builder mergeCustomDimension(CustomDimension value)

Required. The CustomDimension to create.

.google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CustomDimension
Returns
Type Description
CreateCustomDimensionRequest.Builder

mergeFrom(CreateCustomDimensionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomDimension(CustomDimension value)

public CreateCustomDimensionRequest.Builder setCustomDimension(CustomDimension value)

Required. The CustomDimension to create.

.google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CustomDimension
Returns
Type Description
CreateCustomDimensionRequest.Builder

setCustomDimension(CustomDimension.Builder builderForValue)

public CreateCustomDimensionRequest.Builder setCustomDimension(CustomDimension.Builder builderForValue)

Required. The CustomDimension to create.

.google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CustomDimension.Builder
Returns
Type Description
CreateCustomDimensionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateCustomDimensionRequest.Builder setParent(String value)

Required. Example format: properties/1234

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCustomDimensionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCustomDimensionRequest.Builder setParentBytes(ByteString value)

Required. Example format: properties/1234

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateCustomDimensionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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