@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
public Builder mergeFrom(io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest other) { if (other == io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * * * <pre> * The name of the project to get a vulnerability summary for in the form of * `projects/[PROJECT_ID]`. * </pre> * * <code>string parent = 1;</code> */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; onChanged(); return this; }
/** * * * <pre> * The name of the project to get a vulnerability summary for in the form of * `projects/[PROJECT_ID]`. * </pre> * * <code>string parent = 1;</code> */ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } parent_ = value; onChanged(); return this; } /**
/** * * * <pre> * The filter expression. * </pre> * * <code>string filter = 2;</code> */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; }
/** * * * <pre> * The filter expression. * </pre> * * <code>string filter = 2;</code> */ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /**
/** * * * <pre> * The name of the project to get a vulnerability summary for in the form of * `projects/[PROJECT_ID]`. * </pre> * * <code>string parent = 1;</code> */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /**
public Builder mergeFrom(io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest other) { if (other == io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The filter expression. * </pre> * * <code>string filter = 2;</code> */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /**
public static Builder newBuilder( io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
private Builder() { maybeForceBuilderInitialization(); }
@java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
@java.lang.Override public io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest buildPartial() { io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest result = new io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest(this); result.parent_ = parent_; result.filter_ = filter_; onBuilt(); return result; }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }
@java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) { return mergeFrom((io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) other); } else { super.mergeFrom(other); return this; } }
@java.lang.Override public io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest build() { io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * Gets a summary of the number and severity of occurrences. * * <p>Sample code: * * <pre><code> * try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * String filter = ""; * VulnerabilityOccurrencesSummary response = grafeasV1Beta1Client.getVulnerabilityOccurrencesSummary(parent, filter); * } * </code></pre> * * @param parent The name of the project to get a vulnerability summary for in the form of * `projects/[PROJECT_ID]`. * @param filter The filter expression. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary( ProjectName parent, String filter) { GetVulnerabilityOccurrencesSummaryRequest request = GetVulnerabilityOccurrencesSummaryRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .setFilter(filter) .build(); return getVulnerabilityOccurrencesSummary(request); }
/** * Gets a summary of the number and severity of occurrences. * * <p>Sample code: * * <pre><code> * try (GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * String filter = ""; * VulnerabilityOccurrencesSummary response = grafeasV1Beta1Client.getVulnerabilityOccurrencesSummary(parent.toString(), filter); * } * </code></pre> * * @param parent The name of the project to get a vulnerability summary for in the form of * `projects/[PROJECT_ID]`. * @param filter The filter expression. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary( String parent, String filter) { GetVulnerabilityOccurrencesSummaryRequest request = GetVulnerabilityOccurrencesSummaryRequest.newBuilder() .setParent(parent) .setFilter(filter) .build(); return getVulnerabilityOccurrencesSummary(request); }