public static final class SetDefaultBranchRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder> implements SetDefaultBranchRequestOrBuilder
Request message to set a specified branch as new default_branch.Protobuf type
google.cloud.retail.v2.SetDefaultBranchRequest| Modifier and Type | Method and Description |
|---|---|
SetDefaultBranchRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SetDefaultBranchRequest |
build() |
SetDefaultBranchRequest |
buildPartial() |
SetDefaultBranchRequest.Builder |
clear() |
SetDefaultBranchRequest.Builder |
clearBranchId()
The final component of the resource name of a branch.
|
SetDefaultBranchRequest.Builder |
clearCatalog()
Full resource name of the catalog, such as
`projects/*/locations/global/catalogs/default_catalog`.
|
SetDefaultBranchRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SetDefaultBranchRequest.Builder |
clearForce()
If set to true, it permits switching to a branch with
[branch_id][google.cloud.retail.v2.SetDefaultBranchRequest.branch_id] even
if it has no sufficient active products.
|
SetDefaultBranchRequest.Builder |
clearNote()
Some note on this request, this can be retrieved by
[CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch]
before next valid default branch set occurs.
|
SetDefaultBranchRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SetDefaultBranchRequest.Builder |
clone() |
String |
getBranchId()
The final component of the resource name of a branch.
|
com.google.protobuf.ByteString |
getBranchIdBytes()
The final component of the resource name of a branch.
|
String |
getCatalog()
Full resource name of the catalog, such as
`projects/*/locations/global/catalogs/default_catalog`.
|
com.google.protobuf.ByteString |
getCatalogBytes()
Full resource name of the catalog, such as
`projects/*/locations/global/catalogs/default_catalog`.
|
SetDefaultBranchRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getForce()
If set to true, it permits switching to a branch with
[branch_id][google.cloud.retail.v2.SetDefaultBranchRequest.branch_id] even
if it has no sufficient active products.
|
String |
getNote()
Some note on this request, this can be retrieved by
[CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch]
before next valid default branch set occurs.
|
com.google.protobuf.ByteString |
getNoteBytes()
Some note on this request, this can be retrieved by
[CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch]
before next valid default branch set occurs.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SetDefaultBranchRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SetDefaultBranchRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
SetDefaultBranchRequest.Builder |
mergeFrom(SetDefaultBranchRequest other) |
SetDefaultBranchRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SetDefaultBranchRequest.Builder |
setBranchId(String value)
The final component of the resource name of a branch.
|
SetDefaultBranchRequest.Builder |
setBranchIdBytes(com.google.protobuf.ByteString value)
The final component of the resource name of a branch.
|
SetDefaultBranchRequest.Builder |
setCatalog(String value)
Full resource name of the catalog, such as
`projects/*/locations/global/catalogs/default_catalog`.
|
SetDefaultBranchRequest.Builder |
setCatalogBytes(com.google.protobuf.ByteString value)
Full resource name of the catalog, such as
`projects/*/locations/global/catalogs/default_catalog`.
|
SetDefaultBranchRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SetDefaultBranchRequest.Builder |
setForce(boolean value)
If set to true, it permits switching to a branch with
[branch_id][google.cloud.retail.v2.SetDefaultBranchRequest.branch_id] even
if it has no sufficient active products.
|
SetDefaultBranchRequest.Builder |
setNote(String value)
Some note on this request, this can be retrieved by
[CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch]
before next valid default branch set occurs.
|
SetDefaultBranchRequest.Builder |
setNoteBytes(com.google.protobuf.ByteString value)
Some note on this request, this can be retrieved by
[CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch]
before next valid default branch set occurs.
|
SetDefaultBranchRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SetDefaultBranchRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public SetDefaultBranchRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public SetDefaultBranchRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SetDefaultBranchRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SetDefaultBranchRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SetDefaultBranchRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public SetDefaultBranchRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public SetDefaultBranchRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public SetDefaultBranchRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public SetDefaultBranchRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public SetDefaultBranchRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public SetDefaultBranchRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SetDefaultBranchRequest.Builder>public SetDefaultBranchRequest.Builder mergeFrom(SetDefaultBranchRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public SetDefaultBranchRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SetDefaultBranchRequest.Builder>IOExceptionpublic String getCatalog()
Full resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
string catalog = 1 [(.google.api.resource_reference) = { ... }getCatalog in interface SetDefaultBranchRequestOrBuilderpublic com.google.protobuf.ByteString getCatalogBytes()
Full resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
string catalog = 1 [(.google.api.resource_reference) = { ... }getCatalogBytes in interface SetDefaultBranchRequestOrBuilderpublic SetDefaultBranchRequest.Builder setCatalog(String value)
Full resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
string catalog = 1 [(.google.api.resource_reference) = { ... }value - The catalog to set.public SetDefaultBranchRequest.Builder clearCatalog()
Full resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
string catalog = 1 [(.google.api.resource_reference) = { ... }public SetDefaultBranchRequest.Builder setCatalogBytes(com.google.protobuf.ByteString value)
Full resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
string catalog = 1 [(.google.api.resource_reference) = { ... }value - The bytes for catalog to set.public String getBranchId()
The final component of the resource name of a branch. This field must be one of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned. If there are no sufficient active products in the targeted branch and [force][google.cloud.retail.v2.SetDefaultBranchRequest.force] is not set, a FAILED_PRECONDITION error is returned.
string branch_id = 2 [(.google.api.resource_reference) = { ... }getBranchId in interface SetDefaultBranchRequestOrBuilderpublic com.google.protobuf.ByteString getBranchIdBytes()
The final component of the resource name of a branch. This field must be one of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned. If there are no sufficient active products in the targeted branch and [force][google.cloud.retail.v2.SetDefaultBranchRequest.force] is not set, a FAILED_PRECONDITION error is returned.
string branch_id = 2 [(.google.api.resource_reference) = { ... }getBranchIdBytes in interface SetDefaultBranchRequestOrBuilderpublic SetDefaultBranchRequest.Builder setBranchId(String value)
The final component of the resource name of a branch. This field must be one of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned. If there are no sufficient active products in the targeted branch and [force][google.cloud.retail.v2.SetDefaultBranchRequest.force] is not set, a FAILED_PRECONDITION error is returned.
string branch_id = 2 [(.google.api.resource_reference) = { ... }value - The branchId to set.public SetDefaultBranchRequest.Builder clearBranchId()
The final component of the resource name of a branch. This field must be one of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned. If there are no sufficient active products in the targeted branch and [force][google.cloud.retail.v2.SetDefaultBranchRequest.force] is not set, a FAILED_PRECONDITION error is returned.
string branch_id = 2 [(.google.api.resource_reference) = { ... }public SetDefaultBranchRequest.Builder setBranchIdBytes(com.google.protobuf.ByteString value)
The final component of the resource name of a branch. This field must be one of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned. If there are no sufficient active products in the targeted branch and [force][google.cloud.retail.v2.SetDefaultBranchRequest.force] is not set, a FAILED_PRECONDITION error is returned.
string branch_id = 2 [(.google.api.resource_reference) = { ... }value - The bytes for branchId to set.public String getNote()
Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch] before next valid default branch set occurs. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
string note = 3;getNote in interface SetDefaultBranchRequestOrBuilderpublic com.google.protobuf.ByteString getNoteBytes()
Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch] before next valid default branch set occurs. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
string note = 3;getNoteBytes in interface SetDefaultBranchRequestOrBuilderpublic SetDefaultBranchRequest.Builder setNote(String value)
Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch] before next valid default branch set occurs. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
string note = 3;value - The note to set.public SetDefaultBranchRequest.Builder clearNote()
Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch] before next valid default branch set occurs. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
string note = 3;public SetDefaultBranchRequest.Builder setNoteBytes(com.google.protobuf.ByteString value)
Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2.CatalogService.GetDefaultBranch] before next valid default branch set occurs. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
string note = 3;value - The bytes for note to set.public boolean getForce()
If set to true, it permits switching to a branch with [branch_id][google.cloud.retail.v2.SetDefaultBranchRequest.branch_id] even if it has no sufficient active products.
bool force = 4;getForce in interface SetDefaultBranchRequestOrBuilderpublic SetDefaultBranchRequest.Builder setForce(boolean value)
If set to true, it permits switching to a branch with [branch_id][google.cloud.retail.v2.SetDefaultBranchRequest.branch_id] even if it has no sufficient active products.
bool force = 4;value - The force to set.public SetDefaultBranchRequest.Builder clearForce()
If set to true, it permits switching to a branch with [branch_id][google.cloud.retail.v2.SetDefaultBranchRequest.branch_id] even if it has no sufficient active products.
bool force = 4;public final SetDefaultBranchRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>public final SetDefaultBranchRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SetDefaultBranchRequest.Builder>Copyright © 2023 Google LLC. All rights reserved.