Class Provider.Builder (1.22.0)

public static final class Provider.Builder extends GeneratedMessageV3.Builder<Provider.Builder> implements ProviderOrBuilder

A representation of the Provider resource.

Protobuf type google.cloud.eventarc.v1.Provider

Implements

ProviderOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllEventTypes(Iterable<? extends EventType> values)

public Provider.Builder addAllEventTypes(Iterable<? extends EventType> values)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.eventarc.v1.EventType>
Returns
TypeDescription
Provider.Builder

addEventTypes(EventType value)

public Provider.Builder addEventTypes(EventType value)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueEventType
Returns
TypeDescription
Provider.Builder

addEventTypes(EventType.Builder builderForValue)

public Provider.Builder addEventTypes(EventType.Builder builderForValue)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueEventType.Builder
Returns
TypeDescription
Provider.Builder

addEventTypes(int index, EventType value)

public Provider.Builder addEventTypes(int index, EventType value)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueEventType
Returns
TypeDescription
Provider.Builder

addEventTypes(int index, EventType.Builder builderForValue)

public Provider.Builder addEventTypes(int index, EventType.Builder builderForValue)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueEventType.Builder
Returns
TypeDescription
Provider.Builder

addEventTypesBuilder()

public EventType.Builder addEventTypesBuilder()

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
EventType.Builder

addEventTypesBuilder(int index)

public EventType.Builder addEventTypesBuilder(int index)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
EventType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Provider.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Provider.Builder
Overrides

build()

public Provider build()
Returns
TypeDescription
Provider

buildPartial()

public Provider buildPartial()
Returns
TypeDescription
Provider

clear()

public Provider.Builder clear()
Returns
TypeDescription
Provider.Builder
Overrides

clearDisplayName()

public Provider.Builder clearDisplayName()

Output only. Human friendly name for the Provider. For example "Cloud Storage".

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

Returns
TypeDescription
Provider.Builder

This builder for chaining.

clearEventTypes()

public Provider.Builder clearEventTypes()

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Provider.Builder

clearField(Descriptors.FieldDescriptor field)

public Provider.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Provider.Builder
Overrides

clearName()

public Provider.Builder clearName()

Output only. In projects/{project}/locations/{location}/providers/{provider_id} format.

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

Returns
TypeDescription
Provider.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Provider.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Provider.Builder
Overrides

clone()

public Provider.Builder clone()
Returns
TypeDescription
Provider.Builder
Overrides

getDefaultInstanceForType()

public Provider getDefaultInstanceForType()
Returns
TypeDescription
Provider

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Output only. Human friendly name for the Provider. For example "Cloud Storage".

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. Human friendly name for the Provider. For example "Cloud Storage".

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

Returns
TypeDescription
ByteString

The bytes for displayName.

getEventTypes(int index)

public EventType getEventTypes(int index)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
EventType

getEventTypesBuilder(int index)

public EventType.Builder getEventTypesBuilder(int index)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
EventType.Builder

getEventTypesBuilderList()

public List<EventType.Builder> getEventTypesBuilderList()

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getEventTypesCount()

public int getEventTypesCount()

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getEventTypesList()

public List<EventType> getEventTypesList()

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<EventType>

getEventTypesOrBuilder(int index)

public EventTypeOrBuilder getEventTypesOrBuilder(int index)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
EventTypeOrBuilder

getEventTypesOrBuilderList()

public List<? extends EventTypeOrBuilder> getEventTypesOrBuilderList()

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.eventarc.v1.EventTypeOrBuilder>

getName()

public String getName()

Output only. In projects/{project}/locations/{location}/providers/{provider_id} format.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. In projects/{project}/locations/{location}/providers/{provider_id} format.

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Provider other)

public Provider.Builder mergeFrom(Provider other)
Parameter
NameDescription
otherProvider
Returns
TypeDescription
Provider.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Provider.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Provider.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Provider.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Provider.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Provider.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Provider.Builder
Overrides

removeEventTypes(int index)

public Provider.Builder removeEventTypes(int index)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Provider.Builder

setDisplayName(String value)

public Provider.Builder setDisplayName(String value)

Output only. Human friendly name for the Provider. For example "Cloud Storage".

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

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Provider.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Provider.Builder setDisplayNameBytes(ByteString value)

Output only. Human friendly name for the Provider. For example "Cloud Storage".

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

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Provider.Builder

This builder for chaining.

setEventTypes(int index, EventType value)

public Provider.Builder setEventTypes(int index, EventType value)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueEventType
Returns
TypeDescription
Provider.Builder

setEventTypes(int index, EventType.Builder builderForValue)

public Provider.Builder setEventTypes(int index, EventType.Builder builderForValue)

Output only. Event types for this provider.

repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueEventType.Builder
Returns
TypeDescription
Provider.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Provider.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Provider.Builder
Overrides

setName(String value)

public Provider.Builder setName(String value)

Output only. In projects/{project}/locations/{location}/providers/{provider_id} format.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Provider.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Provider.Builder setNameBytes(ByteString value)

Output only. In projects/{project}/locations/{location}/providers/{provider_id} format.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Provider.Builder

This builder for chaining.

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

public Provider.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Provider.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Provider.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Provider.Builder
Overrides