Class Plugin.Builder (0.4.0)

public static final class Plugin.Builder extends GeneratedMessageV3.Builder<Plugin.Builder> implements PluginOrBuilder

A plugin resource in the API Hub.

Protobuf type google.cloud.apihub.v1.Plugin

Implements

PluginOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Plugin.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Plugin.Builder
Overrides

build()

public Plugin build()
Returns
Type Description
Plugin

buildPartial()

public Plugin buildPartial()
Returns
Type Description
Plugin

clear()

public Plugin.Builder clear()
Returns
Type Description
Plugin.Builder
Overrides

clearDescription()

public Plugin.Builder clearDescription()

Optional. The plugin description. Max length is 2000 characters (Unicode code points).

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Plugin.Builder

This builder for chaining.

clearDisplayName()

public Plugin.Builder clearDisplayName()

Required. The display name of the plugin. Max length is 50 characters (Unicode code points).

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Plugin.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Plugin.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Plugin.Builder
Overrides

clearName()

public Plugin.Builder clearName()

Identifier. The name of the plugin. Format: projects/{project}/locations/{location}/plugins/{plugin}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Plugin.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Plugin.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Plugin.Builder
Overrides

clearState()

public Plugin.Builder clearState()

Output only. Represents the state of the plugin.

.google.cloud.apihub.v1.Plugin.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Plugin.Builder

This builder for chaining.

clearType()

public Plugin.Builder clearType()

Required. The type of the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-plugin-type attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

.google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Plugin.Builder

clone()

public Plugin.Builder clone()
Returns
Type Description
Plugin.Builder
Overrides

getDefaultInstanceForType()

public Plugin getDefaultInstanceForType()
Returns
Type Description
Plugin

getDescription()

public String getDescription()

Optional. The plugin description. Max length is 2000 characters (Unicode code points).

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The plugin description. Max length is 2000 characters (Unicode code points).

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The display name of the plugin. Max length is 50 characters (Unicode code points).

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the plugin. Max length is 50 characters (Unicode code points).

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The name of the plugin. Format: projects/{project}/locations/{location}/plugins/{plugin}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the plugin. Format: projects/{project}/locations/{location}/plugins/{plugin}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getState()

public Plugin.State getState()

Output only. Represents the state of the plugin.

.google.cloud.apihub.v1.Plugin.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Plugin.State

The state.

getStateValue()

public int getStateValue()

Output only. Represents the state of the plugin.

.google.cloud.apihub.v1.Plugin.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getType()

public AttributeValues getType()

Required. The type of the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-plugin-type attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

.google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributeValues

The type.

getTypeBuilder()

public AttributeValues.Builder getTypeBuilder()

Required. The type of the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-plugin-type attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

.google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributeValues.Builder

getTypeOrBuilder()

public AttributeValuesOrBuilder getTypeOrBuilder()

Required. The type of the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-plugin-type attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

.google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AttributeValuesOrBuilder

hasType()

public boolean hasType()

Required. The type of the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-plugin-type attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

.google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Plugin other)

public Plugin.Builder mergeFrom(Plugin other)
Parameter
Name Description
other Plugin
Returns
Type Description
Plugin.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Plugin.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Plugin.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Plugin.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Plugin.Builder
Overrides

mergeType(AttributeValues value)

public Plugin.Builder mergeType(AttributeValues value)

Required. The type of the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-plugin-type attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

.google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttributeValues
Returns
Type Description
Plugin.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Plugin.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Plugin.Builder
Overrides

setDescription(String value)

public Plugin.Builder setDescription(String value)

Optional. The plugin description. Max length is 2000 characters (Unicode code points).

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Plugin.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Plugin.Builder setDescriptionBytes(ByteString value)

Optional. The plugin description. Max length is 2000 characters (Unicode code points).

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Plugin.Builder

This builder for chaining.

setDisplayName(String value)

public Plugin.Builder setDisplayName(String value)

Required. The display name of the plugin. Max length is 50 characters (Unicode code points).

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Plugin.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Plugin.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the plugin. Max length is 50 characters (Unicode code points).

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Plugin.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Plugin.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Plugin.Builder
Overrides

setName(String value)

public Plugin.Builder setName(String value)

Identifier. The name of the plugin. Format: projects/{project}/locations/{location}/plugins/{plugin}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Plugin.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Plugin.Builder setNameBytes(ByteString value)

Identifier. The name of the plugin. Format: projects/{project}/locations/{location}/plugins/{plugin}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Plugin.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Plugin.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Plugin.Builder
Overrides

setState(Plugin.State value)

public Plugin.Builder setState(Plugin.State value)

Output only. Represents the state of the plugin.

.google.cloud.apihub.v1.Plugin.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Plugin.State

The state to set.

Returns
Type Description
Plugin.Builder

This builder for chaining.

setStateValue(int value)

public Plugin.Builder setStateValue(int value)

Output only. Represents the state of the plugin.

.google.cloud.apihub.v1.Plugin.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Plugin.Builder

This builder for chaining.

setType(AttributeValues value)

public Plugin.Builder setType(AttributeValues value)

Required. The type of the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-plugin-type attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

.google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AttributeValues
Returns
Type Description
Plugin.Builder

setType(AttributeValues.Builder builderForValue)

public Plugin.Builder setType(AttributeValues.Builder builderForValue)

Required. The type of the API. This maps to the following system defined attribute: projects/{project}/locations/{location}/attributes/system-plugin-type attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

.google.cloud.apihub.v1.AttributeValues type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AttributeValues.Builder
Returns
Type Description
Plugin.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Plugin.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Plugin.Builder
Overrides