Class SpecMetadata.Builder (0.28.0)

public static final class SpecMetadata.Builder extends GeneratedMessageV3.Builder<SpecMetadata.Builder> implements SpecMetadataOrBuilder

The metadata associated with a spec of the API version.

Protobuf type google.cloud.apihub.v1.SpecMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SpecMetadata build()
Returns
Type Description
SpecMetadata

buildPartial()

public SpecMetadata buildPartial()
Returns
Type Description
SpecMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOriginalCreateTime()

public SpecMetadata.Builder clearOriginalCreateTime()

Optional. Timestamp indicating when the spec was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpecMetadata.Builder

clearOriginalId()

public SpecMetadata.Builder clearOriginalId()

Optional. The unique identifier of the spec in the system where it was originally created.

string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpecMetadata.Builder

This builder for chaining.

clearOriginalUpdateTime()

public SpecMetadata.Builder clearOriginalUpdateTime()

Required. Timestamp indicating when the spec was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SpecMetadata.Builder

clearSpec()

public SpecMetadata.Builder clearSpec()

Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by Hub.

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SpecMetadata.Builder

clone()

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

getDefaultInstanceForType()

public SpecMetadata getDefaultInstanceForType()
Returns
Type Description
SpecMetadata

getDescriptorForType()

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

getOriginalCreateTime()

public Timestamp getOriginalCreateTime()

Optional. Timestamp indicating when the spec was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The originalCreateTime.

getOriginalCreateTimeBuilder()

public Timestamp.Builder getOriginalCreateTimeBuilder()

Optional. Timestamp indicating when the spec was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getOriginalCreateTimeOrBuilder()

public TimestampOrBuilder getOriginalCreateTimeOrBuilder()

Optional. Timestamp indicating when the spec was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getOriginalId()

public String getOriginalId()

Optional. The unique identifier of the spec in the system where it was originally created.

string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The originalId.

getOriginalIdBytes()

public ByteString getOriginalIdBytes()

Optional. The unique identifier of the spec in the system where it was originally created.

string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for originalId.

getOriginalUpdateTime()

public Timestamp getOriginalUpdateTime()

Required. Timestamp indicating when the spec was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The originalUpdateTime.

getOriginalUpdateTimeBuilder()

public Timestamp.Builder getOriginalUpdateTimeBuilder()

Required. Timestamp indicating when the spec was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getOriginalUpdateTimeOrBuilder()

public TimestampOrBuilder getOriginalUpdateTimeOrBuilder()

Required. Timestamp indicating when the spec was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getSpec()

public Spec getSpec()

Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by Hub.

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Spec

The spec.

getSpecBuilder()

public Spec.Builder getSpecBuilder()

Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by Hub.

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Spec.Builder

getSpecOrBuilder()

public SpecOrBuilder getSpecOrBuilder()

Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by Hub.

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SpecOrBuilder

hasOriginalCreateTime()

public boolean hasOriginalCreateTime()

Optional. Timestamp indicating when the spec was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the originalCreateTime field is set.

hasOriginalUpdateTime()

public boolean hasOriginalUpdateTime()

Required. Timestamp indicating when the spec was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the originalUpdateTime field is set.

hasSpec()

public boolean hasSpec()

Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by Hub.

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the spec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SpecMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOriginalCreateTime(Timestamp value)

public SpecMetadata.Builder mergeOriginalCreateTime(Timestamp value)

Optional. Timestamp indicating when the spec was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
SpecMetadata.Builder

mergeOriginalUpdateTime(Timestamp value)

public SpecMetadata.Builder mergeOriginalUpdateTime(Timestamp value)

Required. Timestamp indicating when the spec was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
SpecMetadata.Builder

mergeSpec(Spec value)

public SpecMetadata.Builder mergeSpec(Spec value)

Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by Hub.

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Spec
Returns
Type Description
SpecMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setOriginalCreateTime(Timestamp value)

public SpecMetadata.Builder setOriginalCreateTime(Timestamp value)

Optional. Timestamp indicating when the spec was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
SpecMetadata.Builder

setOriginalCreateTime(Timestamp.Builder builderForValue)

public SpecMetadata.Builder setOriginalCreateTime(Timestamp.Builder builderForValue)

Optional. Timestamp indicating when the spec was created at the source.

.google.protobuf.Timestamp original_create_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SpecMetadata.Builder

setOriginalId(String value)

public SpecMetadata.Builder setOriginalId(String value)

Optional. The unique identifier of the spec in the system where it was originally created.

string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The originalId to set.

Returns
Type Description
SpecMetadata.Builder

This builder for chaining.

setOriginalIdBytes(ByteString value)

public SpecMetadata.Builder setOriginalIdBytes(ByteString value)

Optional. The unique identifier of the spec in the system where it was originally created.

string original_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for originalId to set.

Returns
Type Description
SpecMetadata.Builder

This builder for chaining.

setOriginalUpdateTime(Timestamp value)

public SpecMetadata.Builder setOriginalUpdateTime(Timestamp value)

Required. Timestamp indicating when the spec was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
SpecMetadata.Builder

setOriginalUpdateTime(Timestamp.Builder builderForValue)

public SpecMetadata.Builder setOriginalUpdateTime(Timestamp.Builder builderForValue)

Required. Timestamp indicating when the spec was last updated at the source.

.google.protobuf.Timestamp original_update_time = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SpecMetadata.Builder

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

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

setSpec(Spec value)

public SpecMetadata.Builder setSpec(Spec value)

Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by Hub.

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Spec
Returns
Type Description
SpecMetadata.Builder

setSpec(Spec.Builder builderForValue)

public SpecMetadata.Builder setSpec(Spec.Builder builderForValue)

Required. The spec resource to be pushed to Hub's collect layer. The ID of the spec will be generated by Hub.

.google.cloud.apihub.v1.Spec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Spec.Builder
Returns
Type Description
SpecMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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