Class RuntimeProjectAttachment.Builder

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

public static final class RuntimeProjectAttachment.Builder extends com.google.protobuf.GeneratedMessage.Builder<RuntimeProjectAttachment.Builder> implements RuntimeProjectAttachmentOrBuilder
 Runtime project attachment represents an attachment from the runtime project
 to the host project. Api Hub looks for deployments in the attached runtime
 projects and creates corresponding resources in Api Hub for the discovered
 deployments.
 
Protobuf type google.cloud.apihub.v1.RuntimeProjectAttachment
  • 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<RuntimeProjectAttachment.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<RuntimeProjectAttachment.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<RuntimeProjectAttachment.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RuntimeProjectAttachment.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<RuntimeProjectAttachment.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The resource name of a runtime project attachment. Format:
       "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface RuntimeProjectAttachmentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of a runtime project attachment. Format:
       "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface RuntimeProjectAttachmentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RuntimeProjectAttachment.Builder setName(String value)
       Identifier. The resource name of a runtime project attachment. Format:
       "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Identifier. The resource name of a runtime project attachment. Format:
       "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public RuntimeProjectAttachment.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of a runtime project attachment. Format:
       "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getRuntimeProject

      public String getRuntimeProject()
       Required. Immutable. Google cloud project name in the format:
       "projects/abc" or "projects/123". As input, project name with either
       project id or number are accepted. As output, this field will contain
       project number.
       
      string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getRuntimeProject in interface RuntimeProjectAttachmentOrBuilder
      Returns:
      The runtimeProject.
    • getRuntimeProjectBytes

      public com.google.protobuf.ByteString getRuntimeProjectBytes()
       Required. Immutable. Google cloud project name in the format:
       "projects/abc" or "projects/123". As input, project name with either
       project id or number are accepted. As output, this field will contain
       project number.
       
      string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getRuntimeProjectBytes in interface RuntimeProjectAttachmentOrBuilder
      Returns:
      The bytes for runtimeProject.
    • setRuntimeProject

      public RuntimeProjectAttachment.Builder setRuntimeProject(String value)
       Required. Immutable. Google cloud project name in the format:
       "projects/abc" or "projects/123". As input, project name with either
       project id or number are accepted. As output, this field will contain
       project number.
       
      string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The runtimeProject to set.
      Returns:
      This builder for chaining.
    • clearRuntimeProject

      public RuntimeProjectAttachment.Builder clearRuntimeProject()
       Required. Immutable. Google cloud project name in the format:
       "projects/abc" or "projects/123". As input, project name with either
       project id or number are accepted. As output, this field will contain
       project number.
       
      string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRuntimeProjectBytes

      public RuntimeProjectAttachment.Builder setRuntimeProjectBytes(com.google.protobuf.ByteString value)
       Required. Immutable. Google cloud project name in the format:
       "projects/abc" or "projects/123". As input, project name with either
       project id or number are accepted. As output, this field will contain
       project number.
       
      string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for runtimeProject to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface RuntimeProjectAttachmentOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface RuntimeProjectAttachmentOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public RuntimeProjectAttachment.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public RuntimeProjectAttachment.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public RuntimeProjectAttachment.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public RuntimeProjectAttachment.Builder clearCreateTime()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create time.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface RuntimeProjectAttachmentOrBuilder