Class ApiHubInstance.Builder (0.2.0)

public static final class ApiHubInstance.Builder extends GeneratedMessageV3.Builder<ApiHubInstance.Builder> implements ApiHubInstanceOrBuilder

An ApiHubInstance represents the instance resources of the API Hub. Currently, only one ApiHub instance is allowed for each project.

Protobuf type google.cloud.apihub.v1.ApiHubInstance

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApiHubInstance build()
Returns
Type Description
ApiHubInstance

buildPartial()

public ApiHubInstance buildPartial()
Returns
Type Description
ApiHubInstance

clear()

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

clearConfig()

public ApiHubInstance.Builder clearConfig()

Required. Config of the ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiHubInstance.Builder

clearCreateTime()

public ApiHubInstance.Builder clearCreateTime()

Output only. Creation timestamp.

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

Returns
Type Description
ApiHubInstance.Builder

clearDescription()

public ApiHubInstance.Builder clearDescription()

Optional. Description of the ApiHub instance.

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

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public ApiHubInstance.Builder clearLabels()
Returns
Type Description
ApiHubInstance.Builder

clearName()

public ApiHubInstance.Builder clearName()

Identifier. Format: projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public ApiHubInstance.Builder clearState()

Output only. The current state of the ApiHub instance.

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

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

clearStateMessage()

public ApiHubInstance.Builder clearStateMessage()

Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is FAILED.

string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

clearUpdateTime()

public ApiHubInstance.Builder clearUpdateTime()

Output only. Last update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApiHubInstance.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getConfig()

public ApiHubInstance.Config getConfig()

Required. Config of the ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiHubInstance.Config

The config.

getConfigBuilder()

public ApiHubInstance.Config.Builder getConfigBuilder()

Required. Config of the ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiHubInstance.Config.Builder

getConfigOrBuilder()

public ApiHubInstance.ConfigOrBuilder getConfigOrBuilder()

Required. Config of the ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiHubInstance.ConfigOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Creation timestamp.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creation timestamp.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creation timestamp.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ApiHubInstance getDefaultInstanceForType()
Returns
Type Description
ApiHubInstance

getDescription()

public String getDescription()

Optional. Description of the ApiHub instance.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the ApiHub instance.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. Format: projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Format: projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getState()

public ApiHubInstance.State getState()

Output only. The current state of the ApiHub instance.

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

Returns
Type Description
ApiHubInstance.State

The state.

getStateMessage()

public String getStateMessage()

Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is FAILED.

string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The stateMessage.

getStateMessageBytes()

public ByteString getStateMessageBytes()

Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is FAILED.

string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for stateMessage.

getStateValue()

public int getStateValue()

Output only. The current state of the ApiHub instance.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Last update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Last update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasConfig()

public boolean hasConfig()

Required. Config of the ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the config field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Creation timestamp.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Last update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.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

mergeConfig(ApiHubInstance.Config value)

public ApiHubInstance.Builder mergeConfig(ApiHubInstance.Config value)

Required. Config of the ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiHubInstance.Config
Returns
Type Description
ApiHubInstance.Builder

mergeCreateTime(Timestamp value)

public ApiHubInstance.Builder mergeCreateTime(Timestamp value)

Output only. Creation timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ApiHubInstance.Builder

mergeFrom(ApiHubInstance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public ApiHubInstance.Builder mergeUpdateTime(Timestamp value)

Output only. Last update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ApiHubInstance.Builder

putAllLabels(Map<String,String> values)

public ApiHubInstance.Builder putAllLabels(Map<String,String> values)

Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

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

putLabels(String key, String value)

public ApiHubInstance.Builder putLabels(String key, String value)

Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
ApiHubInstance.Builder

removeLabels(String key)

public ApiHubInstance.Builder removeLabels(String key)

Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ApiHubInstance.Builder

setConfig(ApiHubInstance.Config value)

public ApiHubInstance.Builder setConfig(ApiHubInstance.Config value)

Required. Config of the ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ApiHubInstance.Config
Returns
Type Description
ApiHubInstance.Builder

setConfig(ApiHubInstance.Config.Builder builderForValue)

public ApiHubInstance.Builder setConfig(ApiHubInstance.Config.Builder builderForValue)

Required. Config of the ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance.Config config = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ApiHubInstance.Config.Builder
Returns
Type Description
ApiHubInstance.Builder

setCreateTime(Timestamp value)

public ApiHubInstance.Builder setCreateTime(Timestamp value)

Output only. Creation timestamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ApiHubInstance.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ApiHubInstance.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creation timestamp.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ApiHubInstance.Builder

setDescription(String value)

public ApiHubInstance.Builder setDescription(String value)

Optional. Description of the ApiHub instance.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ApiHubInstance.Builder setDescriptionBytes(ByteString value)

Optional. Description of the ApiHub instance.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ApiHubInstance.Builder setName(String value)

Identifier. Format: projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ApiHubInstance.Builder setNameBytes(ByteString value)

Identifier. Format: projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

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

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

setState(ApiHubInstance.State value)

public ApiHubInstance.Builder setState(ApiHubInstance.State value)

Output only. The current state of the ApiHub instance.

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

Parameter
Name Description
value ApiHubInstance.State

The state to set.

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

setStateMessage(String value)

public ApiHubInstance.Builder setStateMessage(String value)

Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is FAILED.

string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The stateMessage to set.

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

setStateMessageBytes(ByteString value)

public ApiHubInstance.Builder setStateMessageBytes(ByteString value)

Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is FAILED.

string state_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for stateMessage to set.

Returns
Type Description
ApiHubInstance.Builder

This builder for chaining.

setStateValue(int value)

public ApiHubInstance.Builder setStateValue(int value)

Output only. The current state of the ApiHub instance.

.google.cloud.apihub.v1.ApiHubInstance.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
ApiHubInstance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public ApiHubInstance.Builder setUpdateTime(Timestamp value)

Output only. Last update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ApiHubInstance.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ApiHubInstance.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last update timestamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ApiHubInstance.Builder