public static final class VersionMetadata.Builder extends GeneratedMessageV3.Builder<VersionMetadata.Builder> implements VersionMetadataOrBuilder
The metadata associated with a version of the API resource.
Protobuf type google.cloud.apihub.v1.VersionMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VersionMetadata.BuilderImplements
VersionMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllDeployments(Iterable<? extends DeploymentMetadata> values)
public VersionMetadata.Builder addAllDeployments(Iterable<? extends DeploymentMetadata> values)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.apihub.v1.DeploymentMetadata> |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addAllSpecs(Iterable<? extends SpecMetadata> values)
public VersionMetadata.Builder addAllSpecs(Iterable<? extends SpecMetadata> values)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.apihub.v1.SpecMetadata> |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addDeployments(DeploymentMetadata value)
public VersionMetadata.Builder addDeployments(DeploymentMetadata value)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
DeploymentMetadata |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addDeployments(DeploymentMetadata.Builder builderForValue)
public VersionMetadata.Builder addDeployments(DeploymentMetadata.Builder builderForValue)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
DeploymentMetadata.Builder |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addDeployments(int index, DeploymentMetadata value)
public VersionMetadata.Builder addDeployments(int index, DeploymentMetadata value)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
DeploymentMetadata |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addDeployments(int index, DeploymentMetadata.Builder builderForValue)
public VersionMetadata.Builder addDeployments(int index, DeploymentMetadata.Builder builderForValue)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
DeploymentMetadata.Builder |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addDeploymentsBuilder()
public DeploymentMetadata.Builder addDeploymentsBuilder()
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
DeploymentMetadata.Builder |
addDeploymentsBuilder(int index)
public DeploymentMetadata.Builder addDeploymentsBuilder(int index)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DeploymentMetadata.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VersionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addSpecs(SpecMetadata value)
public VersionMetadata.Builder addSpecs(SpecMetadata value)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
SpecMetadata |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addSpecs(SpecMetadata.Builder builderForValue)
public VersionMetadata.Builder addSpecs(SpecMetadata.Builder builderForValue)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
SpecMetadata.Builder |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addSpecs(int index, SpecMetadata value)
public VersionMetadata.Builder addSpecs(int index, SpecMetadata value)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
SpecMetadata |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addSpecs(int index, SpecMetadata.Builder builderForValue)
public VersionMetadata.Builder addSpecs(int index, SpecMetadata.Builder builderForValue)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
SpecMetadata.Builder |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
addSpecsBuilder()
public SpecMetadata.Builder addSpecsBuilder()
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
SpecMetadata.Builder |
addSpecsBuilder(int index)
public SpecMetadata.Builder addSpecsBuilder(int index)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SpecMetadata.Builder |
build()
public VersionMetadata build()
Returns | |
---|---|
Type | Description |
VersionMetadata |
buildPartial()
public VersionMetadata buildPartial()
Returns | |
---|---|
Type | Description |
VersionMetadata |
clear()
public VersionMetadata.Builder clear()
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
clearDeployments()
public VersionMetadata.Builder clearDeployments()
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
clearField(Descriptors.FieldDescriptor field)
public VersionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public VersionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
clearOriginalCreateTime()
public VersionMetadata.Builder clearOriginalCreateTime()
Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
clearOriginalId()
public VersionMetadata.Builder clearOriginalId()
Optional. The unique identifier of the version in the system where it was originally created.
string original_id = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
This builder for chaining. |
clearOriginalUpdateTime()
public VersionMetadata.Builder clearOriginalUpdateTime()
Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
clearSpecs()
public VersionMetadata.Builder clearSpecs()
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
clearVersion()
public VersionMetadata.Builder clearVersion()
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
clone()
public VersionMetadata.Builder clone()
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
getDefaultInstanceForType()
public VersionMetadata getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
VersionMetadata |
getDeployments(int index)
public DeploymentMetadata getDeployments(int index)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DeploymentMetadata |
getDeploymentsBuilder(int index)
public DeploymentMetadata.Builder getDeploymentsBuilder(int index)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DeploymentMetadata.Builder |
getDeploymentsBuilderList()
public List<DeploymentMetadata.Builder> getDeploymentsBuilderList()
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getDeploymentsCount()
public int getDeploymentsCount()
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getDeploymentsList()
public List<DeploymentMetadata> getDeploymentsList()
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<DeploymentMetadata> |
getDeploymentsOrBuilder(int index)
public DeploymentMetadataOrBuilder getDeploymentsOrBuilder(int index)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DeploymentMetadataOrBuilder |
getDeploymentsOrBuilderList()
public List<? extends DeploymentMetadataOrBuilder> getDeploymentsOrBuilderList()
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.apihub.v1.DeploymentMetadataOrBuilder> |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getOriginalCreateTime()
public Timestamp getOriginalCreateTime()
Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Timestamp |
The originalCreateTime. |
getOriginalCreateTimeBuilder()
public Timestamp.Builder getOriginalCreateTimeBuilder()
Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Builder |
getOriginalCreateTimeOrBuilder()
public TimestampOrBuilder getOriginalCreateTimeOrBuilder()
Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getOriginalId()
public String getOriginalId()
Optional. The unique identifier of the version in the system where it was originally created.
string original_id = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The originalId. |
getOriginalIdBytes()
public ByteString getOriginalIdBytes()
Optional. The unique identifier of the version in the system where it was originally created.
string original_id = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for originalId. |
getOriginalUpdateTime()
public Timestamp getOriginalUpdateTime()
Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Timestamp |
The originalUpdateTime. |
getOriginalUpdateTimeBuilder()
public Timestamp.Builder getOriginalUpdateTimeBuilder()
Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Builder |
getOriginalUpdateTimeOrBuilder()
public TimestampOrBuilder getOriginalUpdateTimeOrBuilder()
Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getSpecs(int index)
public SpecMetadata getSpecs(int index)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SpecMetadata |
getSpecsBuilder(int index)
public SpecMetadata.Builder getSpecsBuilder(int index)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SpecMetadata.Builder |
getSpecsBuilderList()
public List<SpecMetadata.Builder> getSpecsBuilderList()
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getSpecsCount()
public int getSpecsCount()
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getSpecsList()
public List<SpecMetadata> getSpecsList()
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<SpecMetadata> |
getSpecsOrBuilder(int index)
public SpecMetadataOrBuilder getSpecsOrBuilder(int index)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SpecMetadataOrBuilder |
getSpecsOrBuilderList()
public List<? extends SpecMetadataOrBuilder> getSpecsOrBuilderList()
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.apihub.v1.SpecMetadataOrBuilder> |
getVersion()
public Version getVersion()
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Version |
The version. |
getVersionBuilder()
public Version.Builder getVersionBuilder()
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Version.Builder |
getVersionOrBuilder()
public VersionOrBuilder getVersionOrBuilder()
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
VersionOrBuilder |
hasOriginalCreateTime()
public boolean hasOriginalCreateTime()
Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the originalCreateTime field is set. |
hasOriginalUpdateTime()
public boolean hasOriginalUpdateTime()
Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the originalUpdateTime field is set. |
hasVersion()
public boolean hasVersion()
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the version field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(VersionMetadata other)
public VersionMetadata.Builder mergeFrom(VersionMetadata other)
Parameter | |
---|---|
Name | Description |
other |
VersionMetadata |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VersionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public VersionMetadata.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
mergeOriginalCreateTime(Timestamp value)
public VersionMetadata.Builder mergeOriginalCreateTime(Timestamp value)
Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
mergeOriginalUpdateTime(Timestamp value)
public VersionMetadata.Builder mergeOriginalUpdateTime(Timestamp value)
Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VersionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
mergeVersion(Version value)
public VersionMetadata.Builder mergeVersion(Version value)
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Version |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
removeDeployments(int index)
public VersionMetadata.Builder removeDeployments(int index)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
removeSpecs(int index)
public VersionMetadata.Builder removeSpecs(int index)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setDeployments(int index, DeploymentMetadata value)
public VersionMetadata.Builder setDeployments(int index, DeploymentMetadata value)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
DeploymentMetadata |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setDeployments(int index, DeploymentMetadata.Builder builderForValue)
public VersionMetadata.Builder setDeployments(int index, DeploymentMetadata.Builder builderForValue)
Optional. The deployments linked to this API version. Note: A particular API version could be deployed to multiple deployments (for dev deployment, UAT deployment, etc.)
repeated .google.cloud.apihub.v1.DeploymentMetadata deployments = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
DeploymentMetadata.Builder |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public VersionMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setOriginalCreateTime(Timestamp value)
public VersionMetadata.Builder setOriginalCreateTime(Timestamp value)
Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setOriginalCreateTime(Timestamp.Builder builderForValue)
public VersionMetadata.Builder setOriginalCreateTime(Timestamp.Builder builderForValue)
Optional. Timestamp indicating when the version was created at the source.
.google.protobuf.Timestamp original_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setOriginalId(String value)
public VersionMetadata.Builder setOriginalId(String value)
Optional. The unique identifier of the version in the system where it was originally created.
string original_id = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The originalId to set. |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
This builder for chaining. |
setOriginalIdBytes(ByteString value)
public VersionMetadata.Builder setOriginalIdBytes(ByteString value)
Optional. The unique identifier of the version in the system where it was originally created.
string original_id = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for originalId to set. |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
This builder for chaining. |
setOriginalUpdateTime(Timestamp value)
public VersionMetadata.Builder setOriginalUpdateTime(Timestamp value)
Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setOriginalUpdateTime(Timestamp.Builder builderForValue)
public VersionMetadata.Builder setOriginalUpdateTime(Timestamp.Builder builderForValue)
Required. Timestamp indicating when the version was last updated at the source.
.google.protobuf.Timestamp original_update_time = 7 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VersionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setSpecs(int index, SpecMetadata value)
public VersionMetadata.Builder setSpecs(int index, SpecMetadata value)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
SpecMetadata |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setSpecs(int index, SpecMetadata.Builder builderForValue)
public VersionMetadata.Builder setSpecs(int index, SpecMetadata.Builder builderForValue)
Optional. The specs associated with this version. Note that an API version can be associated with multiple specs.
repeated .google.cloud.apihub.v1.SpecMetadata specs = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
SpecMetadata.Builder |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final VersionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setVersion(Version value)
public VersionMetadata.Builder setVersion(Version value)
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Version |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |
setVersion(Version.Builder builderForValue)
public VersionMetadata.Builder setVersion(Version.Builder builderForValue)
Required. Represents a version of the API resource in API hub. The ID of the version will be generated by Hub.
.google.cloud.apihub.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Version.Builder |
Returns | |
---|---|
Type | Description |
VersionMetadata.Builder |