Class SourceMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.apihub.v1.SourceMetadata
All Implemented Interfaces:
SourceMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SourceMetadata extends com.google.protobuf.GeneratedMessage implements SourceMetadataOrBuilder
 SourceMetadata represents the metadata for a resource at the source.
 
Protobuf type google.cloud.apihub.v1.SourceMetadata
See Also:
  • Field Details

    • PLUGIN_INSTANCE_ACTION_SOURCE_FIELD_NUMBER

      public static final int PLUGIN_INSTANCE_ACTION_SOURCE_FIELD_NUMBER
      See Also:
    • SOURCE_TYPE_FIELD_NUMBER

      public static final int SOURCE_TYPE_FIELD_NUMBER
      See Also:
    • ORIGINAL_RESOURCE_ID_FIELD_NUMBER

      public static final int ORIGINAL_RESOURCE_ID_FIELD_NUMBER
      See Also:
    • ORIGINAL_RESOURCE_CREATE_TIME_FIELD_NUMBER

      public static final int ORIGINAL_RESOURCE_CREATE_TIME_FIELD_NUMBER
      See Also:
    • ORIGINAL_RESOURCE_UPDATE_TIME_FIELD_NUMBER

      public static final int ORIGINAL_RESOURCE_UPDATE_TIME_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSourceCase

      public SourceMetadata.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface SourceMetadataOrBuilder
    • 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];
      Specified by:
      hasPluginInstanceActionSource in interface SourceMetadataOrBuilder
      Returns:
      Whether the pluginInstanceActionSource field is set.
    • 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];
      Specified by:
      getPluginInstanceActionSource in interface SourceMetadataOrBuilder
      Returns:
      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];
      Specified by:
      getPluginInstanceActionSourceOrBuilder in interface SourceMetadataOrBuilder
    • 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];
      Specified by:
      getSourceTypeValue in interface SourceMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for sourceType.
    • 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];
      Specified by:
      getSourceType in interface SourceMetadataOrBuilder
      Returns:
      The sourceType.
    • 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];
      Specified by:
      getOriginalResourceId in interface SourceMetadataOrBuilder
      Returns:
      The originalResourceId.
    • getOriginalResourceIdBytes

      public com.google.protobuf.ByteString getOriginalResourceIdBytes()
       Output only. The unique identifier of the resource at the source.
       
      string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOriginalResourceIdBytes in interface SourceMetadataOrBuilder
      Returns:
      The bytes for originalResourceId.
    • 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];
      Specified by:
      hasOriginalResourceCreateTime in interface SourceMetadataOrBuilder
      Returns:
      Whether the originalResourceCreateTime field is set.
    • getOriginalResourceCreateTime

      public com.google.protobuf.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];
      Specified by:
      getOriginalResourceCreateTime in interface SourceMetadataOrBuilder
      Returns:
      The originalResourceCreateTime.
    • getOriginalResourceCreateTimeOrBuilder

      public com.google.protobuf.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];
      Specified by:
      getOriginalResourceCreateTimeOrBuilder in interface SourceMetadataOrBuilder
    • 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];
      Specified by:
      hasOriginalResourceUpdateTime in interface SourceMetadataOrBuilder
      Returns:
      Whether the originalResourceUpdateTime field is set.
    • getOriginalResourceUpdateTime

      public com.google.protobuf.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];
      Specified by:
      getOriginalResourceUpdateTime in interface SourceMetadataOrBuilder
      Returns:
      The originalResourceUpdateTime.
    • getOriginalResourceUpdateTimeOrBuilder

      public com.google.protobuf.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];
      Specified by:
      getOriginalResourceUpdateTimeOrBuilder in interface SourceMetadataOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SourceMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SourceMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SourceMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SourceMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SourceMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SourceMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SourceMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SourceMetadata.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SourceMetadata.Builder newBuilder()
    • newBuilder

      public static SourceMetadata.Builder newBuilder(SourceMetadata prototype)
    • toBuilder

      public SourceMetadata.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SourceMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SourceMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SourceMetadata> parser()
    • getParserForType

      public com.google.protobuf.Parser<SourceMetadata> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SourceMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder