public static final class CreateFeedRequest.Builder extends GeneratedMessageV3.Builder<CreateFeedRequest.Builder> implements CreateFeedRequestOrBuilder
Create asset feed request.
Protobuf type google.cloud.asset.v1.CreateFeedRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateFeedRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateFeedRequest build()
Returns
buildPartial()
public CreateFeedRequest buildPartial()
Returns
clear()
public CreateFeedRequest.Builder clear()
Returns
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.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
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
clearField(Descriptors.FieldDescriptor field)
public CreateFeedRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateFeedRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public CreateFeedRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateFeedRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.v1.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.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
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
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.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
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
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.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type |
Description |
boolean |
Whether the feed field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name |
Description |
value |
Feed
|
Returns
mergeFrom(CreateFeedRequest other)
public CreateFeedRequest.Builder mergeFrom(CreateFeedRequest other)
Parameter
Returns
public CreateFeedRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateFeedRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateFeedRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name |
Description |
value |
Feed
|
Returns
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.v1.Feed feed = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public CreateFeedRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateFeedRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateFeedRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides