Package com.google.cloud.apihub.v1
Class SourceMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SourceMetadata.Builder>
com.google.cloud.apihub.v1.SourceMetadata.Builder
- All Implemented Interfaces:
SourceMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SourceMetadata
public static final class SourceMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SourceMetadata.Builder>
implements SourceMetadataOrBuilder
SourceMetadata represents the metadata for a resource at the source.Protobuf type
google.cloud.apihub.v1.SourceMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.Output only.Output only.Output only.intOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SourceMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOriginalResourceCreateTime(com.google.protobuf.Timestamp value) Output only.mergeOriginalResourceUpdateTime(com.google.protobuf.Timestamp value) Output only.Output only.setOriginalResourceCreateTime(com.google.protobuf.Timestamp value) Output only.setOriginalResourceCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setOriginalResourceId(String value) Output only.setOriginalResourceIdBytes(com.google.protobuf.ByteString value) Output only.setOriginalResourceUpdateTime(com.google.protobuf.Timestamp value) Output only.setOriginalResourceUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Output only.Output only.Output only.setSourceTypeValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SourceMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SourceMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SourceMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SourceMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SourceMetadata.Builder>
-
mergeFrom
public SourceMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SourceMetadata.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceSourceMetadataOrBuilder
-
clearSource
-
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:
hasPluginInstanceActionSourcein interfaceSourceMetadataOrBuilder- Returns:
- Whether the pluginInstanceActionSource field is set.
-
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:
getPluginInstanceActionSourcein interfaceSourceMetadataOrBuilder- Returns:
- The pluginInstanceActionSource.
-
setPluginInstanceActionSource
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]; -
setPluginInstanceActionSource
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]; -
mergePluginInstanceActionSource
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]; -
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]; -
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]; -
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:
getPluginInstanceActionSourceOrBuilderin interfaceSourceMetadataOrBuilder
-
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:
getSourceTypeValuein interfaceSourceMetadataOrBuilder- Returns:
- The enum numeric value on the wire for sourceType.
-
setSourceTypeValue
Output only. The type of the source.
.google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for sourceType to set.- Returns:
- This builder for chaining.
-
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:
getSourceTypein interfaceSourceMetadataOrBuilder- Returns:
- The sourceType.
-
setSourceType
Output only. The type of the source.
.google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The sourceType to set.- Returns:
- This builder for chaining.
-
clearSourceType
Output only. The type of the source.
.google.cloud.apihub.v1.SourceMetadata.SourceType source_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
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:
getOriginalResourceIdin interfaceSourceMetadataOrBuilder- 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:
getOriginalResourceIdBytesin interfaceSourceMetadataOrBuilder- Returns:
- The bytes for originalResourceId.
-
setOriginalResourceId
Output only. The unique identifier of the resource at the source.
string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The originalResourceId to set.- Returns:
- This builder for chaining.
-
clearOriginalResourceId
Output only. The unique identifier of the resource at the source.
string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setOriginalResourceIdBytes
Output only. The unique identifier of the resource at the source.
string original_resource_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for originalResourceId to set.- Returns:
- This builder for chaining.
-
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:
hasOriginalResourceCreateTimein interfaceSourceMetadataOrBuilder- 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:
getOriginalResourceCreateTimein interfaceSourceMetadataOrBuilder- Returns:
- The originalResourceCreateTime.
-
setOriginalResourceCreateTime
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]; -
setOriginalResourceCreateTime
public SourceMetadata.Builder setOriginalResourceCreateTime(com.google.protobuf.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]; -
mergeOriginalResourceCreateTime
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]; -
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]; -
getOriginalResourceCreateTimeBuilder
public com.google.protobuf.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]; -
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:
getOriginalResourceCreateTimeOrBuilderin interfaceSourceMetadataOrBuilder
-
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:
hasOriginalResourceUpdateTimein interfaceSourceMetadataOrBuilder- 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:
getOriginalResourceUpdateTimein interfaceSourceMetadataOrBuilder- Returns:
- The originalResourceUpdateTime.
-
setOriginalResourceUpdateTime
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]; -
setOriginalResourceUpdateTime
public SourceMetadata.Builder setOriginalResourceUpdateTime(com.google.protobuf.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]; -
mergeOriginalResourceUpdateTime
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]; -
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]; -
getOriginalResourceUpdateTimeBuilder
public com.google.protobuf.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]; -
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:
getOriginalResourceUpdateTimeOrBuilderin interfaceSourceMetadataOrBuilder
-