Class CreateFeedRequest.Builder (3.4.1)

public static final class CreateFeedRequest.Builder extends GeneratedMessageV3.Builder<CreateFeedRequest.Builder> implements CreateFeedRequestOrBuilder

Create asset feed request.

Protobuf type google.cloud.asset.v1p2beta1.CreateFeedRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateFeedRequest build()
Returns
Type Description
CreateFeedRequest

buildPartial()

public CreateFeedRequest buildPartial()
Returns
Type Description
CreateFeedRequest

clear()

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

clearFeed()

public CreateFeedRequest.Builder clearFeed()

Required. The feed details. The field name must be empty and it will be generated in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id

.google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateFeedRequest.Builder

clearFeedId()

public CreateFeedRequest.Builder clearFeedId()

Required. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization.

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

Returns
Type Description
CreateFeedRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateFeedRequest.Builder clearParent()

Required. The name of the project/folder/organization where this feed should be created in. It can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateFeedRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateFeedRequest getDefaultInstanceForType()
Returns
Type Description
CreateFeedRequest

getDescriptorForType()

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

getFeed()

public Feed getFeed()

Required. The feed details. The field name must be empty and it will be generated in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id

.google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Feed

The feed.

getFeedBuilder()

public Feed.Builder getFeedBuilder()

Required. The feed details. The field name must be empty and it will be generated in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id

.google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Feed.Builder

getFeedId()

public String getFeedId()

Required. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization.

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

Returns
Type Description
String

The feedId.

getFeedIdBytes()

public ByteString getFeedIdBytes()

Required. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization.

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

Returns
Type Description
ByteString

The bytes for feedId.

getFeedOrBuilder()

public FeedOrBuilder getFeedOrBuilder()

Required. The feed details. The field name must be empty and it will be generated in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id

.google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FeedOrBuilder

getParent()

public String getParent()

Required. The name of the project/folder/organization where this feed should be created in. It can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the project/folder/organization where this feed should be created in. It can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

hasFeed()

public boolean hasFeed()

Required. The feed details. The field name must be empty and it will be generated in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id

.google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the feed field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFeed(Feed value)

public CreateFeedRequest.Builder mergeFeed(Feed value)

Required. The feed details. The field name must be empty and it will be generated in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id

.google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Feed
Returns
Type Description
CreateFeedRequest.Builder

mergeFrom(CreateFeedRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFeed(Feed value)

public CreateFeedRequest.Builder setFeed(Feed value)

Required. The feed details. The field name must be empty and it will be generated in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id

.google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Feed
Returns
Type Description
CreateFeedRequest.Builder

setFeed(Feed.Builder builderForValue)

public CreateFeedRequest.Builder setFeed(Feed.Builder builderForValue)

Required. The feed details. The field name must be empty and it will be generated in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id

.google.cloud.asset.v1p2beta1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Feed.Builder
Returns
Type Description
CreateFeedRequest.Builder

setFeedId(String value)

public CreateFeedRequest.Builder setFeedId(String value)

Required. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization.

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

Parameter
Name Description
value String

The feedId to set.

Returns
Type Description
CreateFeedRequest.Builder

This builder for chaining.

setFeedIdBytes(ByteString value)

public CreateFeedRequest.Builder setFeedIdBytes(ByteString value)

Required. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization.

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

Parameter
Name Description
value ByteString

The bytes for feedId to set.

Returns
Type Description
CreateFeedRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateFeedRequest.Builder setParent(String value)

Required. The name of the project/folder/organization where this feed should be created in. It can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateFeedRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateFeedRequest.Builder setParentBytes(ByteString value)

Required. The name of the project/folder/organization where this feed should be created in. It can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateFeedRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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