public static final class SourceMetadata.Builder extends GeneratedMessageV3.Builder<SourceMetadata.Builder> implements SourceMetadataOrBuilderSourceMetadata represents the metadata for a resource at the source.
Protobuf type google.cloud.apihub.v1.SourceMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SourceMetadata.BuilderImplements
SourceMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SourceMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
build()
public SourceMetadata build()| Returns | |
|---|---|
| Type | Description |
SourceMetadata |
|
buildPartial()
public SourceMetadata buildPartial()| Returns | |
|---|---|
| Type | Description |
SourceMetadata |
|
clear()
public SourceMetadata.Builder clear()| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public SourceMetadata.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public SourceMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
clearOriginalResourceCreateTime()
public SourceMetadata.Builder clearOriginalResourceCreateTime()Output only. The time at which the resource was created at the source.
.google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
clearOriginalResourceId()
public SourceMetadata.Builder clearOriginalResourceId()Output only. The unique identifier of the resource at the source.
string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
This builder for chaining. |
clearOriginalResourceUpdateTime()
public SourceMetadata.Builder clearOriginalResourceUpdateTime()Output only. The time at which the resource was last updated at the source.
.google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
clearPluginInstanceActionSource()
public SourceMetadata.Builder clearPluginInstanceActionSource()Output only. The source of the resource is a plugin instance action.
.google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
clearSource()
public SourceMetadata.Builder clearSource()| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
clearSourceType()
public SourceMetadata.Builder clearSourceType()Output only. The type of the source.
.google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
This builder for chaining. |
clone()
public SourceMetadata.Builder clone()| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
getDefaultInstanceForType()
public SourceMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SourceMetadata |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOriginalResourceCreateTime()
public Timestamp getOriginalResourceCreateTime()Output only. The time at which the resource was created at the source.
.google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The originalResourceCreateTime. |
getOriginalResourceCreateTimeBuilder()
public Timestamp.Builder getOriginalResourceCreateTimeBuilder()Output only. The time at which the resource was created at the source.
.google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getOriginalResourceCreateTimeOrBuilder()
public TimestampOrBuilder getOriginalResourceCreateTimeOrBuilder()Output only. The time at which the resource was created at the source.
.google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getOriginalResourceId()
public String getOriginalResourceId()Output only. The unique identifier of the resource at the source.
string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The originalResourceId. |
getOriginalResourceIdBytes()
public ByteString getOriginalResourceIdBytes()Output only. The unique identifier of the resource at the source.
string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for originalResourceId. |
getOriginalResourceUpdateTime()
public Timestamp getOriginalResourceUpdateTime()Output only. The time at which the resource was last updated at the source.
.google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The originalResourceUpdateTime. |
getOriginalResourceUpdateTimeBuilder()
public Timestamp.Builder getOriginalResourceUpdateTimeBuilder()Output only. The time at which the resource was last updated at the source.
.google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getOriginalResourceUpdateTimeOrBuilder()
public TimestampOrBuilder getOriginalResourceUpdateTimeOrBuilder()Output only. The time at which the resource was last updated at the source.
.google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getPluginInstanceActionSource()
public SourceMetadata.PluginInstanceActionSource getPluginInstanceActionSource()Output only. The source of the resource is a plugin instance action.
.google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.PluginInstanceActionSource |
The pluginInstanceActionSource. |
getPluginInstanceActionSourceBuilder()
public SourceMetadata.PluginInstanceActionSource.Builder getPluginInstanceActionSourceBuilder()Output only. The source of the resource is a plugin instance action.
.google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.PluginInstanceActionSource.Builder |
|
getPluginInstanceActionSourceOrBuilder()
public SourceMetadata.PluginInstanceActionSourceOrBuilder getPluginInstanceActionSourceOrBuilder()Output only. The source of the resource is a plugin instance action.
.google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.PluginInstanceActionSourceOrBuilder |
|
getSourceCase()
public SourceMetadata.SourceCase getSourceCase()| Returns | |
|---|---|
| Type | Description |
SourceMetadata.SourceCase |
|
getSourceType()
public SourceMetadata.SourceType getSourceType()Output only. The type of the source.
.google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.SourceType |
The sourceType. |
getSourceTypeValue()
public int getSourceTypeValue()Output only. The type of the source.
.google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for sourceType. |
hasOriginalResourceCreateTime()
public boolean hasOriginalResourceCreateTime()Output only. The time at which the resource was created at the source.
.google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the originalResourceCreateTime field is set. |
hasOriginalResourceUpdateTime()
public boolean hasOriginalResourceUpdateTime()Output only. The time at which the resource was last updated at the source.
.google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the originalResourceUpdateTime field is set. |
hasPluginInstanceActionSource()
public boolean hasPluginInstanceActionSource()Output only. The source of the resource is a plugin instance action.
.google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pluginInstanceActionSource field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SourceMetadata other)
public SourceMetadata.Builder mergeFrom(SourceMetadata other)| Parameter | |
|---|---|
| Name | Description |
other |
SourceMetadata |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SourceMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SourceMetadata.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
mergeOriginalResourceCreateTime(Timestamp value)
public SourceMetadata.Builder mergeOriginalResourceCreateTime(Timestamp value)Output only. The time at which the resource was created at the source.
.google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
mergeOriginalResourceUpdateTime(Timestamp value)
public SourceMetadata.Builder mergeOriginalResourceUpdateTime(Timestamp value)Output only. The time at which the resource was last updated at the source.
.google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
mergePluginInstanceActionSource(SourceMetadata.PluginInstanceActionSource value)
public SourceMetadata.Builder mergePluginInstanceActionSource(SourceMetadata.PluginInstanceActionSource value)Output only. The source of the resource is a plugin instance action.
.google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
SourceMetadata.PluginInstanceActionSource |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SourceMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public SourceMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
setOriginalResourceCreateTime(Timestamp value)
public SourceMetadata.Builder setOriginalResourceCreateTime(Timestamp value)Output only. The time at which the resource was created at the source.
.google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
setOriginalResourceCreateTime(Timestamp.Builder builderForValue)
public SourceMetadata.Builder setOriginalResourceCreateTime(Timestamp.Builder builderForValue)Output only. The time at which the resource was created at the source.
.google.protobuf.Timestamp original_resource_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
setOriginalResourceId(String value)
public SourceMetadata.Builder setOriginalResourceId(String value)Output only. The unique identifier of the resource at the source.
string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe originalResourceId to set. |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
This builder for chaining. |
setOriginalResourceIdBytes(ByteString value)
public SourceMetadata.Builder setOriginalResourceIdBytes(ByteString value)Output only. The unique identifier of the resource at the source.
string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for originalResourceId to set. |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
This builder for chaining. |
setOriginalResourceUpdateTime(Timestamp value)
public SourceMetadata.Builder setOriginalResourceUpdateTime(Timestamp value)Output only. The time at which the resource was last updated at the source.
.google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
setOriginalResourceUpdateTime(Timestamp.Builder builderForValue)
public SourceMetadata.Builder setOriginalResourceUpdateTime(Timestamp.Builder builderForValue)Output only. The time at which the resource was last updated at the source.
.google.protobuf.Timestamp original_resource_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
setPluginInstanceActionSource(SourceMetadata.PluginInstanceActionSource value)
public SourceMetadata.Builder setPluginInstanceActionSource(SourceMetadata.PluginInstanceActionSource value)Output only. The source of the resource is a plugin instance action.
.google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
SourceMetadata.PluginInstanceActionSource |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
setPluginInstanceActionSource(SourceMetadata.PluginInstanceActionSource.Builder builderForValue)
public SourceMetadata.Builder setPluginInstanceActionSource(SourceMetadata.PluginInstanceActionSource.Builder builderForValue)Output only. The source of the resource is a plugin instance action.
.google.cloud.apihub.v1.SourceMetadata.PluginInstanceActionSource plugin_instance_action_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SourceMetadata.PluginInstanceActionSource.Builder |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SourceMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|
setSourceType(SourceMetadata.SourceType value)
public SourceMetadata.Builder setSourceType(SourceMetadata.SourceType value)Output only. The type of the source.
.google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
SourceMetadata.SourceTypeThe sourceType to set. |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
This builder for chaining. |
setSourceTypeValue(int value)
public SourceMetadata.Builder setSourceTypeValue(int value)Output only. The type of the source.
.google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for sourceType to set. |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SourceMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
SourceMetadata.Builder |
|