Class CreateCustomDimensionRequest.Builder (0.24.0)

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

Request message for CreateCustomDimension RPC.

Protobuf type google.analytics.admin.v1alpha.CreateCustomDimensionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCustomDimensionRequest build()
Returns
TypeDescription
CreateCustomDimensionRequest

buildPartial()

public CreateCustomDimensionRequest buildPartial()
Returns
TypeDescription
CreateCustomDimensionRequest

clear()

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

clearCustomDimension()

public CreateCustomDimensionRequest.Builder clearCustomDimension()

Required. The CustomDimension to create.

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

Returns
TypeDescription
CreateCustomDimensionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCustomDimensionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateCustomDimensionRequest.Builder

This builder for chaining.

clone()

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

getCustomDimension()

public CustomDimension getCustomDimension()

Required. The CustomDimension to create.

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

Returns
TypeDescription
CustomDimension

The customDimension.

getCustomDimensionBuilder()

public CustomDimension.Builder getCustomDimensionBuilder()

Required. The CustomDimension to create.

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

Returns
TypeDescription
CustomDimension.Builder

getCustomDimensionOrBuilder()

public CustomDimensionOrBuilder getCustomDimensionOrBuilder()

Required. The CustomDimension to create.

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

Returns
TypeDescription
CustomDimensionOrBuilder

getDefaultInstanceForType()

public CreateCustomDimensionRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateCustomDimensionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Example format: properties/1234

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

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

The bytes for parent.

hasCustomDimension()

public boolean hasCustomDimension()

Required. The CustomDimension to create.

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

Returns
TypeDescription
boolean

Whether the customDimension field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomDimension(CustomDimension value)

public CreateCustomDimensionRequest.Builder mergeCustomDimension(CustomDimension value)

Required. The CustomDimension to create.

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

Parameter
NameDescription
valueCustomDimension
Returns
TypeDescription
CreateCustomDimensionRequest.Builder

mergeFrom(CreateCustomDimensionRequest other)

public CreateCustomDimensionRequest.Builder mergeFrom(CreateCustomDimensionRequest other)
Parameter
NameDescription
otherCreateCustomDimensionRequest
Returns
TypeDescription
CreateCustomDimensionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomDimension(CustomDimension value)

public CreateCustomDimensionRequest.Builder setCustomDimension(CustomDimension value)

Required. The CustomDimension to create.

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

Parameter
NameDescription
valueCustomDimension
Returns
TypeDescription
CreateCustomDimensionRequest.Builder

setCustomDimension(CustomDimension.Builder builderForValue)

public CreateCustomDimensionRequest.Builder setCustomDimension(CustomDimension.Builder builderForValue)

Required. The CustomDimension to create.

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

Parameter
NameDescription
builderForValueCustomDimension.Builder
Returns
TypeDescription
CreateCustomDimensionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCustomDimensionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateCustomDimensionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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