Class CreateDependencyRequest.Builder

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

public static final class CreateDependencyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateDependencyRequest.Builder> implements CreateDependencyRequestOrBuilder
 The
 [CreateDependency][google.cloud.apihub.v1.ApiHubDependencies.CreateDependency]
 method's request.
 
Protobuf type google.cloud.apihub.v1.CreateDependencyRequest
  • 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<CreateDependencyRequest.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<CreateDependencyRequest.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<CreateDependencyRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The parent resource for the dependency resource.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateDependencyRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource for the dependency resource.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateDependencyRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateDependencyRequest.Builder setParent(String value)
       Required. The parent resource for the dependency resource.
       Format: `projects/{project}/locations/{location}`
       
      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 CreateDependencyRequest.Builder clearParent()
       Required. The parent resource for the dependency resource.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateDependencyRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource for the dependency resource.
       Format: `projects/{project}/locations/{location}`
       
      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.
    • getDependencyId

      public String getDependencyId()
       Optional. The ID to use for the dependency resource, which will become the
       final component of the dependency's resource name. This field is optional.
       * If provided, the same will be used. The service will throw an error if
       duplicate id is provided by the client.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are `[a-z][A-Z][0-9]-_`.
       
      string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDependencyId in interface CreateDependencyRequestOrBuilder
      Returns:
      The dependencyId.
    • getDependencyIdBytes

      public com.google.protobuf.ByteString getDependencyIdBytes()
       Optional. The ID to use for the dependency resource, which will become the
       final component of the dependency's resource name. This field is optional.
       * If provided, the same will be used. The service will throw an error if
       duplicate id is provided by the client.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are `[a-z][A-Z][0-9]-_`.
       
      string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDependencyIdBytes in interface CreateDependencyRequestOrBuilder
      Returns:
      The bytes for dependencyId.
    • setDependencyId

      public CreateDependencyRequest.Builder setDependencyId(String value)
       Optional. The ID to use for the dependency resource, which will become the
       final component of the dependency's resource name. This field is optional.
       * If provided, the same will be used. The service will throw an error if
       duplicate id is provided by the client.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are `[a-z][A-Z][0-9]-_`.
       
      string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dependencyId to set.
      Returns:
      This builder for chaining.
    • clearDependencyId

      public CreateDependencyRequest.Builder clearDependencyId()
       Optional. The ID to use for the dependency resource, which will become the
       final component of the dependency's resource name. This field is optional.
       * If provided, the same will be used. The service will throw an error if
       duplicate id is provided by the client.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are `[a-z][A-Z][0-9]-_`.
       
      string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDependencyIdBytes

      public CreateDependencyRequest.Builder setDependencyIdBytes(com.google.protobuf.ByteString value)
       Optional. The ID to use for the dependency resource, which will become the
       final component of the dependency's resource name. This field is optional.
       * If provided, the same will be used. The service will throw an error if
       duplicate id is provided by the client.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, and valid characters
       are `[a-z][A-Z][0-9]-_`.
       
      string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for dependencyId to set.
      Returns:
      This builder for chaining.
    • hasDependency

      public boolean hasDependency()
       Required. The dependency resource to create.
       
      .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDependency in interface CreateDependencyRequestOrBuilder
      Returns:
      Whether the dependency field is set.
    • getDependency

      public Dependency getDependency()
       Required. The dependency resource to create.
       
      .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDependency in interface CreateDependencyRequestOrBuilder
      Returns:
      The dependency.
    • setDependency

      public CreateDependencyRequest.Builder setDependency(Dependency value)
       Required. The dependency resource to create.
       
      .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
    • setDependency

      public CreateDependencyRequest.Builder setDependency(Dependency.Builder builderForValue)
       Required. The dependency resource to create.
       
      .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeDependency

      public CreateDependencyRequest.Builder mergeDependency(Dependency value)
       Required. The dependency resource to create.
       
      .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearDependency

      public CreateDependencyRequest.Builder clearDependency()
       Required. The dependency resource to create.
       
      .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
    • getDependencyBuilder

      public Dependency.Builder getDependencyBuilder()
       Required. The dependency resource to create.
       
      .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
    • getDependencyOrBuilder

      public DependencyOrBuilder getDependencyOrBuilder()
       Required. The dependency resource to create.
       
      .google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDependencyOrBuilder in interface CreateDependencyRequestOrBuilder