Class CreateSourceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateSourceRequest.Builder>
com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.Builder
All Implemented Interfaces:
CreateSourceRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateSourceRequest

public static final class CreateSourceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateSourceRequest.Builder> implements CreateSourceRequestOrBuilder
 Request message for creating a source.
 
Protobuf type google.cloud.securitycenter.v1p1beta1.CreateSourceRequest
  • 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<CreateSourceRequest.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<CreateSourceRequest.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<CreateSourceRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CreateSourceRequest.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<CreateSourceRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public CreateSourceRequest.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<CreateSourceRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. Resource name of the new source's parent. Its format should be
       "organizations/[organization_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateSourceRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Resource name of the new source's parent. Its format should be
       "organizations/[organization_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateSourceRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateSourceRequest.Builder setParent(String value)
       Required. Resource name of the new source's parent. Its format should be
       "organizations/[organization_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateSourceRequest.Builder clearParent()
       Required. Resource name of the new source's parent. Its format should be
       "organizations/[organization_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateSourceRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Resource name of the new source's parent. Its format should be
       "organizations/[organization_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasSource

      public boolean hasSource()
       Required. The Source being created, only the display_name and description will be
       used. All other fields will be ignored.
       
      .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSource in interface CreateSourceRequestOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public Source getSource()
       Required. The Source being created, only the display_name and description will be
       used. All other fields will be ignored.
       
      .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSource in interface CreateSourceRequestOrBuilder
      Returns:
      The source.
    • setSource

      public CreateSourceRequest.Builder setSource(Source value)
       Required. The Source being created, only the display_name and description will be
       used. All other fields will be ignored.
       
      .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
    • setSource

      public CreateSourceRequest.Builder setSource(Source.Builder builderForValue)
       Required. The Source being created, only the display_name and description will be
       used. All other fields will be ignored.
       
      .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeSource

      public CreateSourceRequest.Builder mergeSource(Source value)
       Required. The Source being created, only the display_name and description will be
       used. All other fields will be ignored.
       
      .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearSource

      public CreateSourceRequest.Builder clearSource()
       Required. The Source being created, only the display_name and description will be
       used. All other fields will be ignored.
       
      .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSourceBuilder

      public Source.Builder getSourceBuilder()
       Required. The Source being created, only the display_name and description will be
       used. All other fields will be ignored.
       
      .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSourceOrBuilder

      public SourceOrBuilder getSourceOrBuilder()
       Required. The Source being created, only the display_name and description will be
       used. All other fields will be ignored.
       
      .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceOrBuilder in interface CreateSourceRequestOrBuilder