public static final class CollectApiDataRequest.Builder extends GeneratedMessageV3.Builder<CollectApiDataRequest.Builder> implements CollectApiDataRequestOrBuilder
The CollectApiData method's request.
Protobuf type google.cloud.apihub.v1.CollectApiDataRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CollectApiDataRequest.BuilderImplements
CollectApiDataRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CollectApiDataRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
build()
public CollectApiDataRequest build()
Returns | |
---|---|
Type | Description |
CollectApiDataRequest |
buildPartial()
public CollectApiDataRequest buildPartial()
Returns | |
---|---|
Type | Description |
CollectApiDataRequest |
clear()
public CollectApiDataRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
clearActionId()
public CollectApiDataRequest.Builder 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 | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
clearApiData()
public CollectApiDataRequest.Builder clearApiData()
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
clearCollectionType()
public CollectApiDataRequest.Builder clearCollectionType()
Required. The type of collection. Applies to all entries in api_data.
.google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CollectApiDataRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
clearLocation()
public CollectApiDataRequest.Builder 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 | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CollectApiDataRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
clearPluginInstance()
public CollectApiDataRequest.Builder 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 | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
clone()
public CollectApiDataRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
getActionId()
public String 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];
Returns | |
---|---|
Type | Description |
String |
The actionId. |
getActionIdBytes()
public 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];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for actionId. |
getApiData()
public ApiData getApiData()
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ApiData |
The apiData. |
getApiDataBuilder()
public ApiData.Builder getApiDataBuilder()
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ApiData.Builder |
getApiDataOrBuilder()
public ApiDataOrBuilder getApiDataOrBuilder()
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ApiDataOrBuilder |
getCollectionType()
public CollectionType getCollectionType()
Required. The type of collection. Applies to all entries in api_data.
.google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CollectionType |
The collectionType. |
getCollectionTypeValue()
public int getCollectionTypeValue()
Required. The type of collection. Applies to all entries in api_data.
.google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for collectionType. |
getDefaultInstanceForType()
public CollectApiDataRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CollectApiDataRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLocation()
public String 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) = { ... }
Returns | |
---|---|
Type | Description |
String |
The location. |
getLocationBytes()
public 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) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for location. |
getPluginInstance()
public String 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) = { ... }
Returns | |
---|---|
Type | Description |
String |
The pluginInstance. |
getPluginInstanceBytes()
public 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) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for pluginInstance. |
hasApiData()
public boolean hasApiData()
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the apiData field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeApiData(ApiData value)
public CollectApiDataRequest.Builder mergeApiData(ApiData value)
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ApiData |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
mergeFrom(CollectApiDataRequest other)
public CollectApiDataRequest.Builder mergeFrom(CollectApiDataRequest other)
Parameter | |
---|---|
Name | Description |
other |
CollectApiDataRequest |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CollectApiDataRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CollectApiDataRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CollectApiDataRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
setActionId(String value)
public CollectApiDataRequest.Builder setActionId(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The actionId to set. |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
setActionIdBytes(ByteString value)
public CollectApiDataRequest.Builder setActionIdBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for actionId to set. |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
setApiData(ApiData value)
public CollectApiDataRequest.Builder setApiData(ApiData value)
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ApiData |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
setApiData(ApiData.Builder builderForValue)
public CollectApiDataRequest.Builder setApiData(ApiData.Builder builderForValue)
Required. The API data to be collected.
.google.cloud.apihub.v1.ApiData api_data = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
ApiData.Builder |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
setCollectionType(CollectionType value)
public CollectApiDataRequest.Builder setCollectionType(CollectionType value)
Required. The type of collection. Applies to all entries in api_data.
.google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
CollectionType The collectionType to set. |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
setCollectionTypeValue(int value)
public CollectApiDataRequest.Builder setCollectionTypeValue(int value)
Required. The type of collection. Applies to all entries in api_data.
.google.cloud.apihub.v1.CollectionType collection_type = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for collectionType to set. |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CollectApiDataRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
setLocation(String value)
public CollectApiDataRequest.Builder setLocation(String value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The location to set. |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public CollectApiDataRequest.Builder setLocationBytes(ByteString value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for location to set. |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
setPluginInstance(String value)
public CollectApiDataRequest.Builder setPluginInstance(String value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The pluginInstance to set. |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
setPluginInstanceBytes(ByteString value)
public CollectApiDataRequest.Builder setPluginInstanceBytes(ByteString value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for pluginInstance to set. |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CollectApiDataRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CollectApiDataRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CollectApiDataRequest.Builder |