Class CreateKeyEventRequest.Builder (0.58.0)

public static final class CreateKeyEventRequest.Builder extends GeneratedMessageV3.Builder<CreateKeyEventRequest.Builder> implements CreateKeyEventRequestOrBuilder

Request message for CreateKeyEvent RPC

Protobuf type google.analytics.admin.v1alpha.CreateKeyEventRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateKeyEventRequest build()
Returns
Type Description
CreateKeyEventRequest

buildPartial()

public CreateKeyEventRequest buildPartial()
Returns
Type Description
CreateKeyEventRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKeyEvent()

public CreateKeyEventRequest.Builder clearKeyEvent()

Required. The Key Event to create.

.google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateKeyEventRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateKeyEventRequest.Builder clearParent()

Required. The resource name of the parent property where this Key Event will be created. Format: properties/123

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

Returns
Type Description
CreateKeyEventRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateKeyEventRequest getDefaultInstanceForType()
Returns
Type Description
CreateKeyEventRequest

getDescriptorForType()

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

getKeyEvent()

public KeyEvent getKeyEvent()

Required. The Key Event to create.

.google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KeyEvent

The keyEvent.

getKeyEventBuilder()

public KeyEvent.Builder getKeyEventBuilder()

Required. The Key Event to create.

.google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KeyEvent.Builder

getKeyEventOrBuilder()

public KeyEventOrBuilder getKeyEventOrBuilder()

Required. The Key Event to create.

.google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KeyEventOrBuilder

getParent()

public String getParent()

Required. The resource name of the parent property where this Key Event will be created. Format: properties/123

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the parent property where this Key Event will be created. Format: properties/123

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

Returns
Type Description
ByteString

The bytes for parent.

hasKeyEvent()

public boolean hasKeyEvent()

Required. The Key Event to create.

.google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the keyEvent field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateKeyEventRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeKeyEvent(KeyEvent value)

public CreateKeyEventRequest.Builder mergeKeyEvent(KeyEvent value)

Required. The Key Event to create.

.google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value KeyEvent
Returns
Type Description
CreateKeyEventRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeyEvent(KeyEvent value)

public CreateKeyEventRequest.Builder setKeyEvent(KeyEvent value)

Required. The Key Event to create.

.google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value KeyEvent
Returns
Type Description
CreateKeyEventRequest.Builder

setKeyEvent(KeyEvent.Builder builderForValue)

public CreateKeyEventRequest.Builder setKeyEvent(KeyEvent.Builder builderForValue)

Required. The Key Event to create.

.google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue KeyEvent.Builder
Returns
Type Description
CreateKeyEventRequest.Builder

setParent(String value)

public CreateKeyEventRequest.Builder setParent(String value)

Required. The resource name of the parent property where this Key Event will be created. Format: properties/123

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateKeyEventRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateKeyEventRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the parent property where this Key Event will be created. Format: properties/123

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateKeyEventRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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