Class Provider.Builder (1.55.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.eventarc.v1.EventType>
Returns
Type Description
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
Name Description
value EventType
Returns
Type Description
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
Name Description
builderForValue EventType.Builder
Returns
Type Description
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
Name Description
index int
value EventType
Returns
Type Description
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
Name Description
index int
builderForValue EventType.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
EventType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Provider build()
Returns
Type Description
Provider

buildPartial()

public Provider buildPartial()
Returns
Type Description
Provider

clear()

public Provider.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
Provider.Builder

clearField(Descriptors.FieldDescriptor field)

public Provider.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
Provider.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Provider getDefaultInstanceForType()
Returns
Type Description
Provider

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Provider other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Provider.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value String

The displayName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
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
Name Description
index int
value EventType
Returns
Type Description
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
Name Description
index int
builderForValue EventType.Builder
Returns
Type Description
Provider.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Provider.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Provider.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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