public static final class CreatePluginRequest.Builder extends GeneratedMessageV3.Builder<CreatePluginRequest.Builder> implements CreatePluginRequestOrBuilder
The CreatePlugin method's request.
Protobuf type google.cloud.apihub.v1.CreatePluginRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreatePluginRequest.BuilderImplements
CreatePluginRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreatePluginRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
build()
public CreatePluginRequest build()
Returns | |
---|---|
Type | Description |
CreatePluginRequest |
buildPartial()
public CreatePluginRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreatePluginRequest |
clear()
public CreatePluginRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public CreatePluginRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreatePluginRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
clearParent()
public CreatePluginRequest.Builder clearParent()
Required. The parent resource where this plugin will be created.
Format: projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
This builder for chaining. |
clearPlugin()
public CreatePluginRequest.Builder clearPlugin()
Required. The plugin to create.
.google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
clearPluginId()
public CreatePluginRequest.Builder clearPluginId()
Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance.
If not provided, a system generated id will be used.
This value should be 4-63 characters, overall resource name which will be of format
projects/{project}/locations/{location}/plugins/{plugin}
, its length is limited to 1000 characters and valid characters are /a-z[0-9]-_/.
string plugin_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
This builder for chaining. |
clone()
public CreatePluginRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
getDefaultInstanceForType()
public CreatePluginRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreatePluginRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. The parent resource where this plugin will be created.
Format: projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The parent resource where this plugin will be created.
Format: projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for parent. |
getPlugin()
public Plugin getPlugin()
Required. The plugin to create.
.google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Plugin |
The plugin. |
getPluginBuilder()
public Plugin.Builder getPluginBuilder()
Required. The plugin to create.
.google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Plugin.Builder |
getPluginId()
public String getPluginId()
Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance.
If not provided, a system generated id will be used.
This value should be 4-63 characters, overall resource name which will be of format
projects/{project}/locations/{location}/plugins/{plugin}
, its length is limited to 1000 characters and valid characters are /a-z[0-9]-_/.
string plugin_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The pluginId. |
getPluginIdBytes()
public ByteString getPluginIdBytes()
Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance.
If not provided, a system generated id will be used.
This value should be 4-63 characters, overall resource name which will be of format
projects/{project}/locations/{location}/plugins/{plugin}
, its length is limited to 1000 characters and valid characters are /a-z[0-9]-_/.
string plugin_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for pluginId. |
getPluginOrBuilder()
public PluginOrBuilder getPluginOrBuilder()
Required. The plugin to create.
.google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
PluginOrBuilder |
hasPlugin()
public boolean hasPlugin()
Required. The plugin to create.
.google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the plugin field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CreatePluginRequest other)
public CreatePluginRequest.Builder mergeFrom(CreatePluginRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreatePluginRequest |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreatePluginRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreatePluginRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
mergePlugin(Plugin value)
public CreatePluginRequest.Builder mergePlugin(Plugin value)
Required. The plugin to create.
.google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Plugin |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreatePluginRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CreatePluginRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
setParent(String value)
public CreatePluginRequest.Builder setParent(String value)
Required. The parent resource where this plugin will be created.
Format: projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreatePluginRequest.Builder setParentBytes(ByteString value)
Required. The parent resource where this plugin will be created.
Format: projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
This builder for chaining. |
setPlugin(Plugin value)
public CreatePluginRequest.Builder setPlugin(Plugin value)
Required. The plugin to create.
.google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Plugin |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
setPlugin(Plugin.Builder builderForValue)
public CreatePluginRequest.Builder setPlugin(Plugin.Builder builderForValue)
Required. The plugin to create.
.google.cloud.apihub.v1.Plugin plugin = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Plugin.Builder |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
setPluginId(String value)
public CreatePluginRequest.Builder setPluginId(String value)
Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance.
If not provided, a system generated id will be used.
This value should be 4-63 characters, overall resource name which will be of format
projects/{project}/locations/{location}/plugins/{plugin}
, its length is limited to 1000 characters and valid characters are /a-z[0-9]-_/.
string plugin_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The pluginId to set. |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
This builder for chaining. |
setPluginIdBytes(ByteString value)
public CreatePluginRequest.Builder setPluginIdBytes(ByteString value)
Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another Plugin resource in the API hub instance.
If not provided, a system generated id will be used.
This value should be 4-63 characters, overall resource name which will be of format
projects/{project}/locations/{location}/plugins/{plugin}
, its length is limited to 1000 characters and valid characters are /a-z[0-9]-_/.
string plugin_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for pluginId to set. |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreatePluginRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreatePluginRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreatePluginRequest.Builder |