Class CloudRun.Builder (1.55.0)

public static final class CloudRun.Builder extends GeneratedMessageV3.Builder<CloudRun.Builder> implements CloudRunOrBuilder

Represents a Cloud Run destination.

Protobuf type google.cloud.eventarc.v1.CloudRun

Implements

CloudRunOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudRun build()
Returns
Type Description
CloudRun

buildPartial()

public CloudRun buildPartial()
Returns
Type Description
CloudRun

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPath()

public CloudRun.Builder clearPath()

Optional. The relative path on the Cloud Run service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

string path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudRun.Builder

This builder for chaining.

clearRegion()

public CloudRun.Builder clearRegion()

Required. The region the Cloud Run service is deployed in.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CloudRun.Builder

This builder for chaining.

clearService()

public CloudRun.Builder clearService()

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.

Only services located in the same project as the trigger object can be addressed.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CloudRun.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CloudRun getDefaultInstanceForType()
Returns
Type Description
CloudRun

getDescriptorForType()

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

getPath()

public String getPath()

Optional. The relative path on the Cloud Run service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

string path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Optional. The relative path on the Cloud Run service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

string path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for path.

getRegion()

public String getRegion()

Required. The region the Cloud Run service is deployed in.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Required. The region the Cloud Run service is deployed in.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for region.

getService()

public String getService()

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.

Only services located in the same project as the trigger object can be addressed.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.

Only services located in the same project as the trigger object can be addressed.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for service.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudRun other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPath(String value)

public CloudRun.Builder setPath(String value)

Optional. The relative path on the Cloud Run service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

string path = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The path to set.

Returns
Type Description
CloudRun.Builder

This builder for chaining.

setPathBytes(ByteString value)

public CloudRun.Builder setPathBytes(ByteString value)

Optional. The relative path on the Cloud Run service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

string path = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
CloudRun.Builder

This builder for chaining.

setRegion(String value)

public CloudRun.Builder setRegion(String value)

Required. The region the Cloud Run service is deployed in.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
CloudRun.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public CloudRun.Builder setRegionBytes(ByteString value)

Required. The region the Cloud Run service is deployed in.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
CloudRun.Builder

This builder for chaining.

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

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

setService(String value)

public CloudRun.Builder setService(String value)

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.

Only services located in the same project as the trigger object can be addressed.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The service to set.

Returns
Type Description
CloudRun.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public CloudRun.Builder setServiceBytes(ByteString value)

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.

Only services located in the same project as the trigger object can be addressed.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
CloudRun.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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