Class Dependency.Builder

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

public static final class Dependency.Builder extends com.google.protobuf.GeneratedMessage.Builder<Dependency.Builder> implements DependencyOrBuilder
 A dependency resource defined in the API hub describes a dependency directed
 from a consumer to a supplier entity. A dependency can be defined between two
 [Operations][google.cloud.apihub.v1.ApiOperation] or between
 an [Operation][google.cloud.apihub.v1.ApiOperation] and [External
 API][google.cloud.apihub.v1.ExternalApi].
 
Protobuf type google.cloud.apihub.v1.Dependency
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Dependency.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Dependency.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Dependency.Builder>
    • clear

      public Dependency.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<Dependency.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<Dependency.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Dependency.Builder mergeFrom(Dependency other)
    • isInitialized

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

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

      public String getName()
       Identifier. The name of the dependency in the API Hub.
      
       Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface DependencyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the dependency in the API Hub.
      
       Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface DependencyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Dependency.Builder setName(String value)
       Identifier. The name of the dependency in the API Hub.
      
       Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Dependency.Builder clearName()
       Identifier. The name of the dependency in the API Hub.
      
       Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Dependency.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the dependency in the API Hub.
      
       Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasConsumer

      public boolean hasConsumer()
       Required. Immutable. The entity acting as the consumer in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasConsumer in interface DependencyOrBuilder
      Returns:
      Whether the consumer field is set.
    • getConsumer

      public DependencyEntityReference getConsumer()
       Required. Immutable. The entity acting as the consumer in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConsumer in interface DependencyOrBuilder
      Returns:
      The consumer.
    • setConsumer

      public Dependency.Builder setConsumer(DependencyEntityReference value)
       Required. Immutable. The entity acting as the consumer in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
    • setConsumer

      public Dependency.Builder setConsumer(DependencyEntityReference.Builder builderForValue)
       Required. Immutable. The entity acting as the consumer in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
    • mergeConsumer

      public Dependency.Builder mergeConsumer(DependencyEntityReference value)
       Required. Immutable. The entity acting as the consumer in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
    • clearConsumer

      public Dependency.Builder clearConsumer()
       Required. Immutable. The entity acting as the consumer in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
    • getConsumerBuilder

      public DependencyEntityReference.Builder getConsumerBuilder()
       Required. Immutable. The entity acting as the consumer in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
    • getConsumerOrBuilder

      public DependencyEntityReferenceOrBuilder getConsumerOrBuilder()
       Required. Immutable. The entity acting as the consumer in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference consumer = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConsumerOrBuilder in interface DependencyOrBuilder
    • hasSupplier

      public boolean hasSupplier()
       Required. Immutable. The entity acting as the supplier in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSupplier in interface DependencyOrBuilder
      Returns:
      Whether the supplier field is set.
    • getSupplier

      public DependencyEntityReference getSupplier()
       Required. Immutable. The entity acting as the supplier in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSupplier in interface DependencyOrBuilder
      Returns:
      The supplier.
    • setSupplier

      public Dependency.Builder setSupplier(DependencyEntityReference value)
       Required. Immutable. The entity acting as the supplier in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
    • setSupplier

      public Dependency.Builder setSupplier(DependencyEntityReference.Builder builderForValue)
       Required. Immutable. The entity acting as the supplier in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
    • mergeSupplier

      public Dependency.Builder mergeSupplier(DependencyEntityReference value)
       Required. Immutable. The entity acting as the supplier in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
    • clearSupplier

      public Dependency.Builder clearSupplier()
       Required. Immutable. The entity acting as the supplier in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
    • getSupplierBuilder

      public DependencyEntityReference.Builder getSupplierBuilder()
       Required. Immutable. The entity acting as the supplier in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
    • getSupplierOrBuilder

      public DependencyEntityReferenceOrBuilder getSupplierOrBuilder()
       Required. Immutable. The entity acting as the supplier in the dependency.
       
      .google.cloud.apihub.v1.DependencyEntityReference supplier = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSupplierOrBuilder in interface DependencyOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. State of the dependency.
       
      .google.cloud.apihub.v1.Dependency.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface DependencyOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Dependency.Builder setStateValue(int value)
       Output only. State of the dependency.
       
      .google.cloud.apihub.v1.Dependency.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Dependency.State getState()
       Output only. State of the dependency.
       
      .google.cloud.apihub.v1.Dependency.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface DependencyOrBuilder
      Returns:
      The state.
    • setState

      public Dependency.Builder setState(Dependency.State value)
       Output only. State of the dependency.
       
      .google.cloud.apihub.v1.Dependency.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Dependency.Builder clearState()
       Output only. State of the dependency.
       
      .google.cloud.apihub.v1.Dependency.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Human readable description corresponding of the dependency.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface DependencyOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Human readable description corresponding of the dependency.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface DependencyOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Dependency.Builder setDescription(String value)
       Optional. Human readable description corresponding of the dependency.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Dependency.Builder clearDescription()
       Optional. Human readable description corresponding of the dependency.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Dependency.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Human readable description corresponding of the dependency.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getDiscoveryModeValue

      public int getDiscoveryModeValue()
       Output only. Discovery mode of the dependency.
       
      .google.cloud.apihub.v1.Dependency.DiscoveryMode discovery_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDiscoveryModeValue in interface DependencyOrBuilder
      Returns:
      The enum numeric value on the wire for discoveryMode.
    • setDiscoveryModeValue

      public Dependency.Builder setDiscoveryModeValue(int value)
       Output only. Discovery mode of the dependency.
       
      .google.cloud.apihub.v1.Dependency.DiscoveryMode discovery_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for discoveryMode to set.
      Returns:
      This builder for chaining.
    • getDiscoveryMode

      public Dependency.DiscoveryMode getDiscoveryMode()
       Output only. Discovery mode of the dependency.
       
      .google.cloud.apihub.v1.Dependency.DiscoveryMode discovery_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDiscoveryMode in interface DependencyOrBuilder
      Returns:
      The discoveryMode.
    • setDiscoveryMode

      public Dependency.Builder setDiscoveryMode(Dependency.DiscoveryMode value)
       Output only. Discovery mode of the dependency.
       
      .google.cloud.apihub.v1.Dependency.DiscoveryMode discovery_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The discoveryMode to set.
      Returns:
      This builder for chaining.
    • clearDiscoveryMode

      public Dependency.Builder clearDiscoveryMode()
       Output only. Discovery mode of the dependency.
       
      .google.cloud.apihub.v1.Dependency.DiscoveryMode discovery_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasErrorDetail

      public boolean hasErrorDetail()
       Output only. Error details of a dependency if the system has detected it
       internally.
       
      .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasErrorDetail in interface DependencyOrBuilder
      Returns:
      Whether the errorDetail field is set.
    • getErrorDetail

      public DependencyErrorDetail getErrorDetail()
       Output only. Error details of a dependency if the system has detected it
       internally.
       
      .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorDetail in interface DependencyOrBuilder
      Returns:
      The errorDetail.
    • setErrorDetail

      public Dependency.Builder setErrorDetail(DependencyErrorDetail value)
       Output only. Error details of a dependency if the system has detected it
       internally.
       
      .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setErrorDetail

      public Dependency.Builder setErrorDetail(DependencyErrorDetail.Builder builderForValue)
       Output only. Error details of a dependency if the system has detected it
       internally.
       
      .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeErrorDetail

      public Dependency.Builder mergeErrorDetail(DependencyErrorDetail value)
       Output only. Error details of a dependency if the system has detected it
       internally.
       
      .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearErrorDetail

      public Dependency.Builder clearErrorDetail()
       Output only. Error details of a dependency if the system has detected it
       internally.
       
      .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorDetailBuilder

      public DependencyErrorDetail.Builder getErrorDetailBuilder()
       Output only. Error details of a dependency if the system has detected it
       internally.
       
      .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorDetailOrBuilder

      public DependencyErrorDetailOrBuilder getErrorDetailOrBuilder()
       Output only. Error details of a dependency if the system has detected it
       internally.
       
      .google.cloud.apihub.v1.DependencyErrorDetail error_detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorDetailOrBuilder in interface DependencyOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time at which the dependency was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DependencyOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time at which the dependency was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DependencyOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Dependency.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the dependency was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Dependency.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the dependency was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Dependency.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the dependency was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Dependency.Builder clearCreateTime()
       Output only. The time at which the dependency was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time at which the dependency was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time at which the dependency was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DependencyOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time at which the dependency was last updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface DependencyOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time at which the dependency was last updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface DependencyOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Dependency.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the dependency was last updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Dependency.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time at which the dependency was last updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Dependency.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time at which the dependency was last updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Dependency.Builder clearUpdateTime()
       Output only. The time at which the dependency was last updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time at which the dependency was last updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time at which the dependency was last updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface DependencyOrBuilder
    • getAttributesCount

      public int getAttributesCount()
      Description copied from interface: DependencyOrBuilder
       Optional. The list of user defined attributes associated with the
       dependency resource. The key is the attribute name. It will be of the
       format: `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesCount in interface DependencyOrBuilder
    • containsAttributes

      public boolean containsAttributes(String key)
       Optional. The list of user defined attributes associated with the
       dependency resource. The key is the attribute name. It will be of the
       format: `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAttributes in interface DependencyOrBuilder
    • getAttributes

      @Deprecated public Map<String,AttributeValues> getAttributes()
      Deprecated.
      Use getAttributesMap() instead.
      Specified by:
      getAttributes in interface DependencyOrBuilder
    • getAttributesMap

      public Map<String,AttributeValues> getAttributesMap()
       Optional. The list of user defined attributes associated with the
       dependency resource. The key is the attribute name. It will be of the
       format: `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesMap in interface DependencyOrBuilder
    • getAttributesOrDefault

      public AttributeValues getAttributesOrDefault(String key, AttributeValues defaultValue)
       Optional. The list of user defined attributes associated with the
       dependency resource. The key is the attribute name. It will be of the
       format: `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesOrDefault in interface DependencyOrBuilder
    • getAttributesOrThrow

      public AttributeValues getAttributesOrThrow(String key)
       Optional. The list of user defined attributes associated with the
       dependency resource. The key is the attribute name. It will be of the
       format: `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesOrThrow in interface DependencyOrBuilder
    • clearAttributes

      public Dependency.Builder clearAttributes()
    • removeAttributes

      public Dependency.Builder removeAttributes(String key)
       Optional. The list of user defined attributes associated with the
       dependency resource. The key is the attribute name. It will be of the
       format: `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAttributes

      @Deprecated public Map<String,AttributeValues> getMutableAttributes()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAttributes

      public Dependency.Builder putAttributes(String key, AttributeValues value)
       Optional. The list of user defined attributes associated with the
       dependency resource. The key is the attribute name. It will be of the
       format: `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 10 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAttributes

      public Dependency.Builder putAllAttributes(Map<String,AttributeValues> values)
       Optional. The list of user defined attributes associated with the
       dependency resource. The key is the attribute name. It will be of the
       format: `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 10 [(.google.api.field_behavior) = OPTIONAL];
    • putAttributesBuilderIfAbsent

      public AttributeValues.Builder putAttributesBuilderIfAbsent(String key)
       Optional. The list of user defined attributes associated with the
       dependency resource. The key is the attribute name. It will be of the
       format: `projects/{project}/locations/{location}/attributes/{attribute}`.
       The value is the attribute values associated with the resource.
       
      map<string, .google.cloud.apihub.v1.AttributeValues> attributes = 10 [(.google.api.field_behavior) = OPTIONAL];