Class ExportSBOMRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportSBOMRequest.Builder>
com.google.containeranalysis.v1.ExportSBOMRequest.Builder
All Implemented Interfaces:
ExportSBOMRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExportSBOMRequest

public static final class ExportSBOMRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExportSBOMRequest.Builder> implements ExportSBOMRequestOrBuilder
 The request to generate and export SBOM. Target must be specified for the
 request.
 
Protobuf type google.devtools.containeranalysis.v1.ExportSBOMRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ExportSBOMRequest.Builder>
    • clear

      public ExportSBOMRequest.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ExportSBOMRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ExportSBOMRequest.Builder>
    • getDefaultInstanceForType

      public ExportSBOMRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ExportSBOMRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ExportSBOMRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ExportSBOMRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportSBOMRequest.Builder>
    • mergeFrom

      public ExportSBOMRequest.Builder mergeFrom(ExportSBOMRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ExportSBOMRequest.Builder>
    • mergeFrom

      public ExportSBOMRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportSBOMRequest.Builder>
      Throws:
      IOException
    • getTargetCase

      public ExportSBOMRequest.TargetCase getTargetCase()
      Specified by:
      getTargetCase in interface ExportSBOMRequestOrBuilder
    • clearTarget

      public ExportSBOMRequest.Builder clearTarget()
    • getName

      public String getName()
       Required. The name of the resource in the form of
       `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface ExportSBOMRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the resource in the form of
       `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface ExportSBOMRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ExportSBOMRequest.Builder setName(String value)
       Required. The name of the resource in the form of
       `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ExportSBOMRequest.Builder clearName()
       Required. The name of the resource in the form of
       `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExportSBOMRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the resource in the form of
       `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCloudStorageLocation

      public boolean hasCloudStorageLocation()
       Optional. Empty placeholder to denote that this is a Google Cloud Storage
       export request.
       
      .google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation cloud_storage_location = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCloudStorageLocation in interface ExportSBOMRequestOrBuilder
      Returns:
      Whether the cloudStorageLocation field is set.
    • getCloudStorageLocation

      public ExportSBOMRequest.CloudStorageLocation getCloudStorageLocation()
       Optional. Empty placeholder to denote that this is a Google Cloud Storage
       export request.
       
      .google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation cloud_storage_location = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCloudStorageLocation in interface ExportSBOMRequestOrBuilder
      Returns:
      The cloudStorageLocation.
    • setCloudStorageLocation

      public ExportSBOMRequest.Builder setCloudStorageLocation(ExportSBOMRequest.CloudStorageLocation value)
       Optional. Empty placeholder to denote that this is a Google Cloud Storage
       export request.
       
      .google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation cloud_storage_location = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setCloudStorageLocation

      public ExportSBOMRequest.Builder setCloudStorageLocation(ExportSBOMRequest.CloudStorageLocation.Builder builderForValue)
       Optional. Empty placeholder to denote that this is a Google Cloud Storage
       export request.
       
      .google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation cloud_storage_location = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCloudStorageLocation

      public ExportSBOMRequest.Builder mergeCloudStorageLocation(ExportSBOMRequest.CloudStorageLocation value)
       Optional. Empty placeholder to denote that this is a Google Cloud Storage
       export request.
       
      .google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation cloud_storage_location = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearCloudStorageLocation

      public ExportSBOMRequest.Builder clearCloudStorageLocation()
       Optional. Empty placeholder to denote that this is a Google Cloud Storage
       export request.
       
      .google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation cloud_storage_location = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getCloudStorageLocationBuilder

      public ExportSBOMRequest.CloudStorageLocation.Builder getCloudStorageLocationBuilder()
       Optional. Empty placeholder to denote that this is a Google Cloud Storage
       export request.
       
      .google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation cloud_storage_location = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getCloudStorageLocationOrBuilder

      public ExportSBOMRequest.CloudStorageLocationOrBuilder getCloudStorageLocationOrBuilder()
       Optional. Empty placeholder to denote that this is a Google Cloud Storage
       export request.
       
      .google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation cloud_storage_location = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCloudStorageLocationOrBuilder in interface ExportSBOMRequestOrBuilder