@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
public Builder mergeFrom( com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest .getDefaultInstance()) return this; if (!other.getProjectName().isEmpty()) { projectName_ = other.projectName_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * [Required] The resource name of the Google Cloud Platform project. Written * as `projects/` plus the * [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). * Example: `projects/my-project-123`. * </pre> * * <code>string project_name = 1;</code> */ public Builder setProjectName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectName_ = value; onChanged(); return this; } /**
/** * * * <pre> * [Required] The resource name of the Google Cloud Platform project. Written * as `projects/` plus the * [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). * Example: `projects/my-project-123`. * </pre> * * <code>string project_name = 1;</code> */ public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectName_ = value; onChanged(); return this; }
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * * * <pre> * [Required] The resource name of the Google Cloud Platform project. Written * as `projects/` plus the * [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). * Example: `projects/my-project-123`. * </pre> * * <code>string project_name = 1;</code> */ public Builder clearProjectName() { projectName_ = getDefaultInstance().getProjectName(); onChanged(); return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }
public static Builder newBuilder( com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
public Builder mergeFrom( com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest other) { if (other == com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest .getDefaultInstance()) return this; if (!other.getProjectName().isEmpty()) { projectName_ = other.projectName_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest buildPartial() { com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest result = new com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest(this); result.projectName_ = projectName_; onBuilt(); return result; }
@java.lang.Override public com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest build() { com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest) { return mergeFrom( (com.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest) other); } else { super.mergeFrom(other); return this; } }
/** * Deletes all error events of a given project. * * <p>Sample code: * * <pre><code> * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ProjectName projectName = ProjectName.of("[PROJECT]"); * DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName); * } * </code></pre> * * @param projectName [Required] The resource name of the Google Cloud Platform project. Written * as `projects/` plus the [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). Example: `projects/my-project-123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeleteEventsResponse deleteEvents(ProjectName projectName) { DeleteEventsRequest request = DeleteEventsRequest.newBuilder() .setProjectName(projectName == null ? null : projectName.toString()) .build(); return deleteEvents(request); }
/** * * * <pre> * [Required] The resource name of the Google Cloud Platform project. Written * as `projects/` plus the * [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). * Example: `projects/my-project-123`. * </pre> * * <code>string project_name = 1;</code> */ public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectName_ = value; onChanged(); return this; }
/** * * * <pre> * [Required] The resource name of the Google Cloud Platform project. Written * as `projects/` plus the * [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). * Example: `projects/my-project-123`. * </pre> * * <code>string project_name = 1;</code> */ public Builder setProjectName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } projectName_ = value; onChanged(); return this; } /**
/** * Deletes all error events of a given project. * * <p>Sample code: * * <pre><code> * try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) { * ProjectName projectName = ProjectName.of("[PROJECT]"); * DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName.toString()); * } * </code></pre> * * @param projectName [Required] The resource name of the Google Cloud Platform project. Written * as `projects/` plus the [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). Example: `projects/my-project-123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DeleteEventsResponse deleteEvents(String projectName) { DeleteEventsRequest request = DeleteEventsRequest.newBuilder().setProjectName(projectName).build(); return deleteEvents(request); }
/** * * * <pre> * [Required] The resource name of the Google Cloud Platform project. Written * as `projects/` plus the * [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). * Example: `projects/my-project-123`. * </pre> * * <code>string project_name = 1;</code> */ public Builder clearProjectName() { projectName_ = getDefaultInstance().getProjectName(); onChanged(); return this; } /**