Class Event.Builder (1.40.0)

public static final class Event.Builder extends GeneratedMessageV3.Builder<Event.Builder> implements EventOrBuilder

The definition of an Event for a managed / semi-managed notebook instance.

Protobuf type google.cloud.notebooks.v2.Event

Implements

EventOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Event build()
Returns
Type Description
Event

buildPartial()

public Event buildPartial()
Returns
Type Description
Event

clear()

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

clearDetails()

public Event.Builder clearDetails()
Returns
Type Description
Event.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReportTime()

public Event.Builder clearReportTime()

Optional. Event report time.

.google.protobuf.Timestamp report_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Event.Builder

clearType()

public Event.Builder clearType()

Optional. Event type.

.google.cloud.notebooks.v2.Event.EventType type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Event.Builder

This builder for chaining.

clone()

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

containsDetails(String key)

public boolean containsDetails(String key)

Optional. Event details. This field is used to pass event information.

map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public Event getDefaultInstanceForType()
Returns
Type Description
Event

getDescriptorForType()

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

getDetails() (deprecated)

public Map<String,String> getDetails()

Use #getDetailsMap() instead.

Returns
Type Description
Map<String,String>

getDetailsCount()

public int getDetailsCount()

Optional. Event details. This field is used to pass event information.

map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDetailsMap()

public Map<String,String> getDetailsMap()

Optional. Event details. This field is used to pass event information.

map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getDetailsOrDefault(String key, String defaultValue)

public String getDetailsOrDefault(String key, String defaultValue)

Optional. Event details. This field is used to pass event information.

map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getDetailsOrThrow(String key)

public String getDetailsOrThrow(String key)

Optional. Event details. This field is used to pass event information.

map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableDetails() (deprecated)

public Map<String,String> getMutableDetails()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getReportTime()

public Timestamp getReportTime()

Optional. Event report time.

.google.protobuf.Timestamp report_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The reportTime.

getReportTimeBuilder()

public Timestamp.Builder getReportTimeBuilder()

Optional. Event report time.

.google.protobuf.Timestamp report_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getReportTimeOrBuilder()

public TimestampOrBuilder getReportTimeOrBuilder()

Optional. Event report time.

.google.protobuf.Timestamp report_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getType()

public Event.EventType getType()

Optional. Event type.

.google.cloud.notebooks.v2.Event.EventType type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Event.EventType

The type.

getTypeValue()

public int getTypeValue()

Optional. Event type.

.google.cloud.notebooks.v2.Event.EventType type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasReportTime()

public boolean hasReportTime()

Optional. Event report time.

.google.protobuf.Timestamp report_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the reportTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Event other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReportTime(Timestamp value)

public Event.Builder mergeReportTime(Timestamp value)

Optional. Event report time.

.google.protobuf.Timestamp report_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
Event.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllDetails(Map<String,String> values)

public Event.Builder putAllDetails(Map<String,String> values)

Optional. Event details. This field is used to pass event information.

map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Event.Builder

putDetails(String key, String value)

public Event.Builder putDetails(String key, String value)

Optional. Event details. This field is used to pass event information.

map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Event.Builder

removeDetails(String key)

public Event.Builder removeDetails(String key)

Optional. Event details. This field is used to pass event information.

map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Event.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setReportTime(Timestamp value)

public Event.Builder setReportTime(Timestamp value)

Optional. Event report time.

.google.protobuf.Timestamp report_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
Event.Builder

setReportTime(Timestamp.Builder builderForValue)

public Event.Builder setReportTime(Timestamp.Builder builderForValue)

Optional. Event report time.

.google.protobuf.Timestamp report_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Event.Builder

setType(Event.EventType value)

public Event.Builder setType(Event.EventType value)

Optional. Event type.

.google.cloud.notebooks.v2.Event.EventType type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Event.EventType

The type to set.

Returns
Type Description
Event.Builder

This builder for chaining.

setTypeValue(int value)

public Event.Builder setTypeValue(int value)

Optional. Event type.

.google.cloud.notebooks.v2.Event.EventType type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
Event.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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