Class SourceMetadata (0.28.0)

public final class SourceMetadata extends GeneratedMessageV3 implements SourceMetadataOrBuilder

SourceMetadata represents the metadata for a resource at the source.

Protobuf type google.cloud.apihub.v1.SourceMetadata

Static Fields

ORIGINAL_RESOURCE_CREATE_TIME_FIELD_NUMBER

public static final int ORIGINAL_RESOURCE_CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_RESOURCE_ID_FIELD_NUMBER

public static final int ORIGINAL_RESOURCE_ID_FIELD_NUMBER
Field Value
Type Description
int

ORIGINAL_RESOURCE_UPDATE_TIME_FIELD_NUMBER

public static final int ORIGINAL_RESOURCE_UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

PLUGIN_INSTANCE_ACTION_SOURCE_FIELD_NUMBER

public static final int PLUGIN_INSTANCE_ACTION_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_TYPE_FIELD_NUMBER

public static final int SOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SourceMetadata getDefaultInstance()
Returns
Type Description
SourceMetadata

getDescriptor()

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

newBuilder()

public static SourceMetadata.Builder newBuilder()
Returns
Type Description
SourceMetadata.Builder

newBuilder(SourceMetadata prototype)

public static SourceMetadata.Builder newBuilder(SourceMetadata prototype)
Parameter
Name Description
prototype SourceMetadata
Returns
Type Description
SourceMetadata.Builder

parseDelimitedFrom(InputStream input)

public static SourceMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SourceMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SourceMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SourceMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SourceMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SourceMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SourceMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SourceMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SourceMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SourceMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SourceMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SourceMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SourceMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SourceMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SourceMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SourceMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SourceMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SourceMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SourceMetadata> parser()
Returns
Type Description
Parser<SourceMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SourceMetadata getDefaultInstanceForType()
Returns
Type Description
SourceMetadata

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.

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.

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

getParserForType()

public Parser<SourceMetadata> getParserForType()
Returns
Type Description
Parser<SourceMetadata>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SourceMetadata.Builder newBuilderForType()
Returns
Type Description
SourceMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SourceMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SourceMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SourceMetadata.Builder toBuilder()
Returns
Type Description
SourceMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException