public static final class ReportErrorEventRequest.Builder extends GeneratedMessage.Builder<ReportErrorEventRequest.Builder> implements ReportErrorEventRequestOrBuilderA request for reporting an individual error event.
Protobuf type google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ReportErrorEventRequest.BuilderImplements
ReportErrorEventRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
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. |
getDefaultInstanceForType()
public ReportErrorEventRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ReportErrorEventRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ReportErrorEventRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ReportErrorEventRequest.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for projectName to set. |
| Returns | |
|---|---|
| Type | Description |
ReportErrorEventRequest.Builder |
This builder for chaining. |