Package com.google.cloud.apihub.v1
Class CollectApiDataRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CollectApiDataRequest.Builder>
com.google.cloud.apihub.v1.CollectApiDataRequest.Builder
- All Implemented Interfaces:
CollectApiDataRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CollectApiDataRequest
public static final class CollectApiDataRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CollectApiDataRequest.Builder>
implements CollectApiDataRequestOrBuilder
The CollectApiData method's request.Protobuf type
google.cloud.apihub.v1.CollectApiDataRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Required.Required.Required.Required.Required.com.google.protobuf.ByteStringRequired.Required.Required.Required.Required.intRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeApiData(ApiData value) Required.mergeFrom(CollectApiDataRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setActionId(String value) Required.setActionIdBytes(com.google.protobuf.ByteString value) Required.setApiData(ApiData value) Required.setApiData(ApiData.Builder builderForValue) Required.setCollectionType(CollectionType value) Required.setCollectionTypeValue(int value) Required.setLocation(String value) Required.setLocationBytes(com.google.protobuf.ByteString value) Required.setPluginInstance(String value) Required.setPluginInstanceBytes(com.google.protobuf.ByteString value) Required.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<CollectApiDataRequest.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<CollectApiDataRequest.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<CollectApiDataRequest.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<CollectApiDataRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CollectApiDataRequest.Builder>
-
mergeFrom
public CollectApiDataRequest.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<CollectApiDataRequest.Builder>- Throws:
IOException
-
getLocation
Required. The regional location of the API hub instance and its resources. Format: `projects/{project}/locations/{location}`string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getLocationin interfaceCollectApiDataRequestOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()Required. The regional location of the API hub instance and its resources. Format: `projects/{project}/locations/{location}`string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getLocationBytesin interfaceCollectApiDataRequestOrBuilder- Returns:
- The bytes for location.
-
setLocation
Required. The regional location of the API hub instance and its resources. Format: `projects/{project}/locations/{location}`string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
Required. The regional location of the API hub instance and its resources. Format: `projects/{project}/locations/{location}`string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setLocationBytes
Required. The regional location of the API hub instance and its resources. Format: `projects/{project}/locations/{location}`string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
getCollectionTypeValue
public int getCollectionTypeValue()Required. The type of collection. Applies to all entries in [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
.google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCollectionTypeValuein interfaceCollectApiDataRequestOrBuilder- Returns:
- The enum numeric value on the wire for collectionType.
-
setCollectionTypeValue
Required. The type of collection. Applies to all entries in [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
.google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for collectionType to set.- Returns:
- This builder for chaining.
-
getCollectionType
Required. The type of collection. Applies to all entries in [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
.google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCollectionTypein interfaceCollectApiDataRequestOrBuilder- Returns:
- The collectionType.
-
setCollectionType
Required. The type of collection. Applies to all entries in [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
.google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The collectionType to set.- Returns:
- This builder for chaining.
-
clearCollectionType
Required. The type of collection. Applies to all entries in [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
.google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getPluginInstance
Required. The plugin instance collecting the API data. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.string plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getPluginInstancein interfaceCollectApiDataRequestOrBuilder- Returns:
- The pluginInstance.
-
getPluginInstanceBytes
public com.google.protobuf.ByteString getPluginInstanceBytes()Required. The plugin instance collecting the API data. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.string plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getPluginInstanceBytesin interfaceCollectApiDataRequestOrBuilder- Returns:
- The bytes for pluginInstance.
-
setPluginInstance
Required. The plugin instance collecting the API data. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.string plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The pluginInstance to set.- Returns:
- This builder for chaining.
-
clearPluginInstance
Required. The plugin instance collecting the API data. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.string plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setPluginInstanceBytes
Required. The plugin instance collecting the API data. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.string plugin_instance = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for pluginInstance to set.- Returns:
- This builder for chaining.
-
getActionId
Required. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin.
string action_id = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getActionIdin interfaceCollectApiDataRequestOrBuilder- Returns:
- The actionId.
-
getActionIdBytes
public com.google.protobuf.ByteString getActionIdBytes()Required. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin.
string action_id = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getActionIdBytesin interfaceCollectApiDataRequestOrBuilder- Returns:
- The bytes for actionId.
-
setActionId
Required. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin.
string action_id = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The actionId to set.- Returns:
- This builder for chaining.
-
clearActionId
Required. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin.
string action_id = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setActionIdBytes
Required. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin.
string action_id = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for actionId to set.- Returns:
- This builder for chaining.
-
hasApiData
public boolean hasApiData()Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasApiDatain interfaceCollectApiDataRequestOrBuilder- Returns:
- Whether the apiData field is set.
-
getApiData
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getApiDatain interfaceCollectApiDataRequestOrBuilder- Returns:
- The apiData.
-
setApiData
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED]; -
setApiData
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED]; -
mergeApiData
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED]; -
clearApiData
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED]; -
getApiDataBuilder
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED]; -
getApiDataOrBuilder
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getApiDataOrBuilderin interfaceCollectApiDataRequestOrBuilder
-