Class ReportErrorEventRequest.Builder (0.126.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReportErrorEventRequest build()
Returns
TypeDescription
ReportErrorEventRequest

buildPartial()

public ReportErrorEventRequest buildPartial()
Returns
TypeDescription
ReportErrorEventRequest

clear()

public ReportErrorEventRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
ReportErrorEventRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ReportErrorEventRequest getDefaultInstanceForType()
Returns
TypeDescription
ReportErrorEventRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the event field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueReportedErrorEvent
Returns
TypeDescription
ReportErrorEventRequest.Builder

mergeFrom(ReportErrorEventRequest other)

public ReportErrorEventRequest.Builder mergeFrom(ReportErrorEventRequest other)
Parameter
NameDescription
otherReportErrorEventRequest
Returns
TypeDescription
ReportErrorEventRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReportErrorEventRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueReportedErrorEvent
Returns
TypeDescription
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
NameDescription
builderForValueReportedErrorEvent.Builder
Returns
TypeDescription
ReportErrorEventRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The projectName to set.

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

The bytes for projectName to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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