Class ReportErrorEventRequest.Builder (0.165.0-beta)

public static final class ReportErrorEventRequest.Builder extends GeneratedMessageV3.Builder<ReportErrorEventRequest.Builder> implements ReportErrorEventRequestOrBuilder

A request for reporting an individual error event.

Protobuf type google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReportErrorEventRequest build()
Returns
Type Description
ReportErrorEventRequest

buildPartial()

public ReportErrorEventRequest buildPartial()
Returns
Type Description
ReportErrorEventRequest

clear()

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

clearEvent()

public ReportErrorEventRequest.Builder clearEvent()

Required. The error event to be reported.

.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReportErrorEventRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectName()

public ReportErrorEventRequest.Builder clearProjectName()

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID.

Example: // projects/my-project-123.

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

Returns
Type Description
ReportErrorEventRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ReportErrorEventRequest getDefaultInstanceForType()
Returns
Type Description
ReportErrorEventRequest

getDescriptorForType()

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

getEvent()

public ReportedErrorEvent getEvent()

Required. The error event to be reported.

.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReportedErrorEvent

The event.

getEventBuilder()

public ReportedErrorEvent.Builder getEventBuilder()

Required. The error event to be reported.

.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReportedErrorEvent.Builder

getEventOrBuilder()

public ReportedErrorEventOrBuilder getEventOrBuilder()

Required. The error event to be reported.

.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReportedErrorEventOrBuilder

getProjectName()

public String getProjectName()

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID.

Example: // projects/my-project-123.

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

Returns
Type Description
String

The projectName.

getProjectNameBytes()

public ByteString getProjectNameBytes()

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID.

Example: // projects/my-project-123.

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

Returns
Type Description
ByteString

The bytes for projectName.

hasEvent()

public boolean hasEvent()

Required. The error event to be reported.

.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the event field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEvent(ReportedErrorEvent value)

public ReportErrorEventRequest.Builder mergeEvent(ReportedErrorEvent value)

Required. The error event to be reported.

.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ReportedErrorEvent
Returns
Type Description
ReportErrorEventRequest.Builder

mergeFrom(ReportErrorEventRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEvent(ReportedErrorEvent value)

public ReportErrorEventRequest.Builder setEvent(ReportedErrorEvent value)

Required. The error event to be reported.

.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ReportedErrorEvent
Returns
Type Description
ReportErrorEventRequest.Builder

setEvent(ReportedErrorEvent.Builder builderForValue)

public ReportErrorEventRequest.Builder setEvent(ReportedErrorEvent.Builder builderForValue)

Required. The error event to be reported.

.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ReportedErrorEvent.Builder
Returns
Type Description
ReportErrorEventRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProjectName(String value)

public ReportErrorEventRequest.Builder setProjectName(String value)

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID.

Example: // projects/my-project-123.

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

Parameter
Name Description
value String

The projectName to set.

Returns
Type Description
ReportErrorEventRequest.Builder

This builder for chaining.

setProjectNameBytes(ByteString value)

public ReportErrorEventRequest.Builder setProjectNameBytes(ByteString value)

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID.

Example: // projects/my-project-123.

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

Parameter
Name Description
value ByteString

The bytes for projectName to set.

Returns
Type Description
ReportErrorEventRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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