public static final class Event.Builder extends GeneratedMessage.Builder<Event.Builder> implements EventOrBuilderThe definition of an Event for a managed / semi-managed notebook instance.
Protobuf type google.cloud.notebooks.v2.Event
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Event.BuilderImplements
EventOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearDetails()
public Event.Builder clearDetails()| Returns | |
|---|---|
| Type | Description |
Event.Builder |
|
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Event.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Event.Builder |
|
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 |
|
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 |
|
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.EventTypeThe 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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
Event.Builder |
This builder for chaining. |