Class DependencyEntityReference.Builder

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

public static final class DependencyEntityReference.Builder extends com.google.protobuf.GeneratedMessage.Builder<DependencyEntityReference.Builder> implements DependencyEntityReferenceOrBuilder
 Reference to an entity participating in a dependency.
 
Protobuf type google.cloud.apihub.v1.DependencyEntityReference
  • 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<DependencyEntityReference.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<DependencyEntityReference.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<DependencyEntityReference.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DependencyEntityReference.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<DependencyEntityReference.Builder>
      Throws:
      IOException
    • getIdentifierCase

      public DependencyEntityReference.IdentifierCase getIdentifierCase()
      Specified by:
      getIdentifierCase in interface DependencyEntityReferenceOrBuilder
    • clearIdentifier

      public DependencyEntityReference.Builder clearIdentifier()
    • hasOperationResourceName

      public boolean hasOperationResourceName()
       The resource name of an operation in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      string operation_resource_name = 2;
      Specified by:
      hasOperationResourceName in interface DependencyEntityReferenceOrBuilder
      Returns:
      Whether the operationResourceName field is set.
    • getOperationResourceName

      public String getOperationResourceName()
       The resource name of an operation in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      string operation_resource_name = 2;
      Specified by:
      getOperationResourceName in interface DependencyEntityReferenceOrBuilder
      Returns:
      The operationResourceName.
    • getOperationResourceNameBytes

      public com.google.protobuf.ByteString getOperationResourceNameBytes()
       The resource name of an operation in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      string operation_resource_name = 2;
      Specified by:
      getOperationResourceNameBytes in interface DependencyEntityReferenceOrBuilder
      Returns:
      The bytes for operationResourceName.
    • setOperationResourceName

      public DependencyEntityReference.Builder setOperationResourceName(String value)
       The resource name of an operation in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      string operation_resource_name = 2;
      Parameters:
      value - The operationResourceName to set.
      Returns:
      This builder for chaining.
    • clearOperationResourceName

      public DependencyEntityReference.Builder clearOperationResourceName()
       The resource name of an operation in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      string operation_resource_name = 2;
      Returns:
      This builder for chaining.
    • setOperationResourceNameBytes

      public DependencyEntityReference.Builder setOperationResourceNameBytes(com.google.protobuf.ByteString value)
       The resource name of an operation in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
       
      string operation_resource_name = 2;
      Parameters:
      value - The bytes for operationResourceName to set.
      Returns:
      This builder for chaining.
    • hasExternalApiResourceName

      public boolean hasExternalApiResourceName()
       The resource name of an external API in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/externalApis/{external_api}`
       
      string external_api_resource_name = 3;
      Specified by:
      hasExternalApiResourceName in interface DependencyEntityReferenceOrBuilder
      Returns:
      Whether the externalApiResourceName field is set.
    • getExternalApiResourceName

      public String getExternalApiResourceName()
       The resource name of an external API in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/externalApis/{external_api}`
       
      string external_api_resource_name = 3;
      Specified by:
      getExternalApiResourceName in interface DependencyEntityReferenceOrBuilder
      Returns:
      The externalApiResourceName.
    • getExternalApiResourceNameBytes

      public com.google.protobuf.ByteString getExternalApiResourceNameBytes()
       The resource name of an external API in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/externalApis/{external_api}`
       
      string external_api_resource_name = 3;
      Specified by:
      getExternalApiResourceNameBytes in interface DependencyEntityReferenceOrBuilder
      Returns:
      The bytes for externalApiResourceName.
    • setExternalApiResourceName

      public DependencyEntityReference.Builder setExternalApiResourceName(String value)
       The resource name of an external API in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/externalApis/{external_api}`
       
      string external_api_resource_name = 3;
      Parameters:
      value - The externalApiResourceName to set.
      Returns:
      This builder for chaining.
    • clearExternalApiResourceName

      public DependencyEntityReference.Builder clearExternalApiResourceName()
       The resource name of an external API in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/externalApis/{external_api}`
       
      string external_api_resource_name = 3;
      Returns:
      This builder for chaining.
    • setExternalApiResourceNameBytes

      public DependencyEntityReference.Builder setExternalApiResourceNameBytes(com.google.protobuf.ByteString value)
       The resource name of an external API in the API Hub.
      
       Format:
       `projects/{project}/locations/{location}/externalApis/{external_api}`
       
      string external_api_resource_name = 3;
      Parameters:
      value - The bytes for externalApiResourceName to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Output only. Display name of the entity.
       
      string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayName in interface DependencyEntityReferenceOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Output only. Display name of the entity.
       
      string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayNameBytes in interface DependencyEntityReferenceOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public DependencyEntityReference.Builder setDisplayName(String value)
       Output only. Display name of the entity.
       
      string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public DependencyEntityReference.Builder clearDisplayName()
       Output only. Display name of the entity.
       
      string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public DependencyEntityReference.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Output only. Display name of the entity.
       
      string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.