Class CreateGoogleApiSourceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateGoogleApiSourceRequest.Builder>
com.google.cloud.eventarc.v1.CreateGoogleApiSourceRequest.Builder
All Implemented Interfaces:
CreateGoogleApiSourceRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateGoogleApiSourceRequest

public static final class CreateGoogleApiSourceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateGoogleApiSourceRequest.Builder> implements CreateGoogleApiSourceRequestOrBuilder
 The request message for the CreateGoogleApiSource method.
 
Protobuf type google.cloud.eventarc.v1.CreateGoogleApiSourceRequest
  • 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<CreateGoogleApiSourceRequest.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<CreateGoogleApiSourceRequest.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<CreateGoogleApiSourceRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

      public String getParent()
       Required. The parent collection in which to add this google api source.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateGoogleApiSourceRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent collection in which to add this google api source.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateGoogleApiSourceRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateGoogleApiSourceRequest.Builder setParent(String value)
       Required. The parent collection in which to add this google api source.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The parent collection in which to add this google api source.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateGoogleApiSourceRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent collection in which to add this google api source.
       
      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.
    • hasGoogleApiSource

      public boolean hasGoogleApiSource()
       Required. The google api source to create.
       
      .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasGoogleApiSource in interface CreateGoogleApiSourceRequestOrBuilder
      Returns:
      Whether the googleApiSource field is set.
    • getGoogleApiSource

      public GoogleApiSource getGoogleApiSource()
       Required. The google api source to create.
       
      .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGoogleApiSource in interface CreateGoogleApiSourceRequestOrBuilder
      Returns:
      The googleApiSource.
    • setGoogleApiSource

      public CreateGoogleApiSourceRequest.Builder setGoogleApiSource(GoogleApiSource value)
       Required. The google api source to create.
       
      .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED];
    • setGoogleApiSource

      public CreateGoogleApiSourceRequest.Builder setGoogleApiSource(GoogleApiSource.Builder builderForValue)
       Required. The google api source to create.
       
      .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeGoogleApiSource

      public CreateGoogleApiSourceRequest.Builder mergeGoogleApiSource(GoogleApiSource value)
       Required. The google api source to create.
       
      .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearGoogleApiSource

      public CreateGoogleApiSourceRequest.Builder clearGoogleApiSource()
       Required. The google api source to create.
       
      .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED];
    • getGoogleApiSourceBuilder

      public GoogleApiSource.Builder getGoogleApiSourceBuilder()
       Required. The google api source to create.
       
      .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED];
    • getGoogleApiSourceOrBuilder

      public GoogleApiSourceOrBuilder getGoogleApiSourceOrBuilder()
       Required. The google api source to create.
       
      .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGoogleApiSourceOrBuilder in interface CreateGoogleApiSourceRequestOrBuilder
    • getGoogleApiSourceId

      public String getGoogleApiSourceId()
       Required. The user-provided ID to be assigned to the GoogleApiSource. It
       should match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      string google_api_source_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGoogleApiSourceId in interface CreateGoogleApiSourceRequestOrBuilder
      Returns:
      The googleApiSourceId.
    • getGoogleApiSourceIdBytes

      public com.google.protobuf.ByteString getGoogleApiSourceIdBytes()
       Required. The user-provided ID to be assigned to the GoogleApiSource. It
       should match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      string google_api_source_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGoogleApiSourceIdBytes in interface CreateGoogleApiSourceRequestOrBuilder
      Returns:
      The bytes for googleApiSourceId.
    • setGoogleApiSourceId

      public CreateGoogleApiSourceRequest.Builder setGoogleApiSourceId(String value)
       Required. The user-provided ID to be assigned to the GoogleApiSource. It
       should match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      string google_api_source_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The googleApiSourceId to set.
      Returns:
      This builder for chaining.
    • clearGoogleApiSourceId

      public CreateGoogleApiSourceRequest.Builder clearGoogleApiSourceId()
       Required. The user-provided ID to be assigned to the GoogleApiSource. It
       should match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      string google_api_source_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setGoogleApiSourceIdBytes

      public CreateGoogleApiSourceRequest.Builder setGoogleApiSourceIdBytes(com.google.protobuf.ByteString value)
       Required. The user-provided ID to be assigned to the GoogleApiSource. It
       should match the format `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
       
      string google_api_source_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for googleApiSourceId to set.
      Returns:
      This builder for chaining.
    • getValidateOnly

      public boolean getValidateOnly()
       Optional. If set, validate the request and preview the review, but do not
       post it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidateOnly in interface CreateGoogleApiSourceRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public CreateGoogleApiSourceRequest.Builder setValidateOnly(boolean value)
       Optional. If set, validate the request and preview the review, but do not
       post it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public CreateGoogleApiSourceRequest.Builder clearValidateOnly()
       Optional. If set, validate the request and preview the review, but do not
       post it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.