Class CreateFeedRequest.Builder (3.4.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateFeedRequest build()
Returns
TypeDescription
CreateFeedRequest

buildPartial()

public CreateFeedRequest buildPartial()
Returns
TypeDescription
CreateFeedRequest

clear()

public CreateFeedRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateFeedRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateFeedRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateFeedRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateFeedRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateFeedRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the feed field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueFeed
Returns
TypeDescription
CreateFeedRequest.Builder

mergeFrom(CreateFeedRequest other)

public CreateFeedRequest.Builder mergeFrom(CreateFeedRequest other)
Parameter
NameDescription
otherCreateFeedRequest
Returns
TypeDescription
CreateFeedRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateFeedRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFeed
Returns
TypeDescription
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
NameDescription
builderForValueFeed.Builder
Returns
TypeDescription
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
NameDescription
valueString

The feedId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for feedId to set.

Returns
TypeDescription
CreateFeedRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateFeedRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateFeedRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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