Class Dependency.Builder (0.1.0)

public static final class Dependency.Builder extends GeneratedMessageV3.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 or between an Operation and External API.

Protobuf type google.cloud.apihub.v1.Dependency

Implements

DependencyOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Dependency.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Dependency.Builder
Overrides

build()

public Dependency build()
Returns
Type Description
Dependency

buildPartial()

public Dependency buildPartial()
Returns
Type Description
Dependency

clear()

public Dependency.Builder clear()
Returns
Type Description
Dependency.Builder
Overrides

clearAttributes()

public Dependency.Builder clearAttributes()
Returns
Type Description
Dependency.Builder

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];

Returns
Type Description
Dependency.Builder

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];

Returns
Type Description
Dependency.Builder

clearDescription()

public Dependency.Builder clearDescription()

Optional. Human readable description corresponding of the dependency.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Dependency.Builder

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
Type Description
Dependency.Builder

This builder for chaining.

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];

Returns
Type Description
Dependency.Builder

clearField(Descriptors.FieldDescriptor field)

public Dependency.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Dependency.Builder
Overrides

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
Type Description
Dependency.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Dependency.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Dependency.Builder
Overrides

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
Type Description
Dependency.Builder

This builder for chaining.

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];

Returns
Type Description
Dependency.Builder

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];

Returns
Type Description
Dependency.Builder

clone()

public Dependency.Builder clone()
Returns
Type Description
Dependency.Builder
Overrides

containsAttributes(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAttributes() (deprecated)

public Map<String,AttributeValues> getAttributes()

Use #getAttributesMap() instead.

Returns
Type Description
Map<String,AttributeValues>

getAttributesCount()

public int getAttributesCount()

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];

Returns
Type Description
int

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];

Returns
Type Description
Map<String,AttributeValues>

getAttributesOrDefault(String key, AttributeValues defaultValue)

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];

Parameters
Name Description
key String
defaultValue AttributeValues
Returns
Type Description
AttributeValues

getAttributesOrThrow(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
AttributeValues

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];

Returns
Type Description
DependencyEntityReference

The consumer.

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];

Returns
Type Description
DependencyEntityReference.Builder

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];

Returns
Type Description
DependencyEntityReferenceOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the dependency was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public 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];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the dependency was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Dependency getDefaultInstanceForType()
Returns
Type Description
Dependency

getDescription()

public String getDescription()

Optional. Human readable description corresponding of the dependency.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Human readable description corresponding of the dependency.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
Dependency.DiscoveryMode

The discoveryMode.

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];

Returns
Type Description
int

The enum numeric value on the wire for discoveryMode.

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];

Returns
Type Description
DependencyErrorDetail

The errorDetail.

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];

Returns
Type Description
DependencyErrorDetail.Builder

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];

Returns
Type Description
DependencyErrorDetailOrBuilder

getMutableAttributes() (deprecated)

public Map<String,AttributeValues> getMutableAttributes()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,AttributeValues>

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];

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

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];

Returns
Type Description
Dependency.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the dependency.

.google.cloud.apihub.v1.Dependency.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

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];

Returns
Type Description
DependencyEntityReference

The supplier.

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];

Returns
Type Description
DependencyEntityReference.Builder

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];

Returns
Type Description
DependencyEntityReferenceOrBuilder

getUpdateTime()

public 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];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public 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];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public 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];

Returns
Type Description
TimestampOrBuilder

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];

Returns
Type Description
boolean

Whether the consumer field is set.

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];

Returns
Type Description
boolean

Whether the createTime field is set.

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];

Returns
Type Description
boolean

Whether the errorDetail field is set.

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];

Returns
Type Description
boolean

Whether the supplier field is set.

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];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConsumer(DependencyEntityReference value)

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];

Parameter
Name Description
value DependencyEntityReference
Returns
Type Description
Dependency.Builder

mergeCreateTime(Timestamp value)

public Dependency.Builder mergeCreateTime(Timestamp value)

Output only. The time at which the dependency was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Dependency.Builder

mergeErrorDetail(DependencyErrorDetail value)

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];

Parameter
Name Description
value DependencyErrorDetail
Returns
Type Description
Dependency.Builder

mergeFrom(Dependency other)

public Dependency.Builder mergeFrom(Dependency other)
Parameter
Name Description
other Dependency
Returns
Type Description
Dependency.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Dependency.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dependency.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Dependency.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Dependency.Builder
Overrides

mergeSupplier(DependencyEntityReference value)

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];

Parameter
Name Description
value DependencyEntityReference
Returns
Type Description
Dependency.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Dependency.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Dependency.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Dependency.Builder mergeUpdateTime(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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Dependency.Builder

putAllAttributes(Map<String,AttributeValues> values)

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];

Parameter
Name Description
values Map<String,AttributeValues>
Returns
Type Description
Dependency.Builder

putAttributes(String key, AttributeValues value)

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];

Parameters
Name Description
key String
value AttributeValues
Returns
Type Description
Dependency.Builder

putAttributesBuilderIfAbsent(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
AttributeValues.Builder

removeAttributes(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
Dependency.Builder

setConsumer(DependencyEntityReference value)

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];

Parameter
Name Description
value DependencyEntityReference
Returns
Type Description
Dependency.Builder

setConsumer(DependencyEntityReference.Builder builderForValue)

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];

Parameter
Name Description
builderForValue DependencyEntityReference.Builder
Returns
Type Description
Dependency.Builder

setCreateTime(Timestamp value)

public Dependency.Builder setCreateTime(Timestamp value)

Output only. The time at which the dependency was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Dependency.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Dependency.Builder setCreateTime(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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Dependency.Builder

setDescription(String value)

public Dependency.Builder setDescription(String value)

Optional. Human readable description corresponding of the dependency.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Dependency.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Dependency.Builder setDescriptionBytes(ByteString value)

Optional. Human readable description corresponding of the dependency.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Dependency.Builder

This builder for chaining.

setDiscoveryMode(Dependency.DiscoveryMode value)

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];

Parameter
Name Description
value Dependency.DiscoveryMode

The discoveryMode to set.

Returns
Type Description
Dependency.Builder

This builder for chaining.

setDiscoveryModeValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for discoveryMode to set.

Returns
Type Description
Dependency.Builder

This builder for chaining.

setErrorDetail(DependencyErrorDetail value)

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];

Parameter
Name Description
value DependencyErrorDetail
Returns
Type Description
Dependency.Builder

setErrorDetail(DependencyErrorDetail.Builder builderForValue)

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];

Parameter
Name Description
builderForValue DependencyErrorDetail.Builder
Returns
Type Description
Dependency.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Dependency.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Dependency.Builder
Overrides

setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Dependency.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Dependency.Builder setNameBytes(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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Dependency.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Dependency.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Dependency.Builder
Overrides

setState(Dependency.State value)

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];

Parameter
Name Description
value Dependency.State

The state to set.

Returns
Type Description
Dependency.Builder

This builder for chaining.

setStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Dependency.Builder

This builder for chaining.

setSupplier(DependencyEntityReference value)

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];

Parameter
Name Description
value DependencyEntityReference
Returns
Type Description
Dependency.Builder

setSupplier(DependencyEntityReference.Builder builderForValue)

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];

Parameter
Name Description
builderForValue DependencyEntityReference.Builder
Returns
Type Description
Dependency.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Dependency.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Dependency.Builder
Overrides

setUpdateTime(Timestamp value)

public Dependency.Builder setUpdateTime(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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Dependency.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Dependency.Builder setUpdateTime(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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Dependency.Builder