Package com.google.cloud.retail.v2beta
Class SetDefaultBranchRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.retail.v2beta.SetDefaultBranchRequest
-
- All Implemented Interfaces:
SetDefaultBranchRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class SetDefaultBranchRequest extends com.google.protobuf.GeneratedMessageV3 implements SetDefaultBranchRequestOrBuilder
Request message to set a specified branch as new default_branch.
Protobuf typegoogle.cloud.retail.v2beta.SetDefaultBranchRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSetDefaultBranchRequest.BuilderRequest message to set a specified branch as new default_branch.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBRANCH_ID_FIELD_NUMBERstatic intCATALOG_FIELD_NUMBERstatic intFORCE_FIELD_NUMBERstatic intNOTE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetBranchId()The final component of the resource name of a branch.com.google.protobuf.ByteStringgetBranchIdBytes()The final component of the resource name of a branch.StringgetCatalog()Full resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`.com.google.protobuf.ByteStringgetCatalogBytes()Full resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`.static SetDefaultBranchRequestgetDefaultInstance()SetDefaultBranchRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetForce()If set to true, it permits switching to a branch with [branch_id][google.cloud.retail.v2beta.SetDefaultBranchRequest.branch_id] even if it has no sufficient active products.StringgetNote()Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2beta.CatalogService.GetDefaultBranch] before next valid default branch set occurs.com.google.protobuf.ByteStringgetNoteBytes()Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2beta.CatalogService.GetDefaultBranch] before next valid default branch set occurs.com.google.protobuf.Parser<SetDefaultBranchRequest>getParserForType()intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static SetDefaultBranchRequest.BuildernewBuilder()static SetDefaultBranchRequest.BuildernewBuilder(SetDefaultBranchRequest prototype)SetDefaultBranchRequest.BuildernewBuilderForType()protected SetDefaultBranchRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SetDefaultBranchRequestparseDelimitedFrom(InputStream input)static SetDefaultBranchRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SetDefaultBranchRequestparseFrom(byte[] data)static SetDefaultBranchRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SetDefaultBranchRequestparseFrom(com.google.protobuf.ByteString data)static SetDefaultBranchRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SetDefaultBranchRequestparseFrom(com.google.protobuf.CodedInputStream input)static SetDefaultBranchRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SetDefaultBranchRequestparseFrom(InputStream input)static SetDefaultBranchRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SetDefaultBranchRequestparseFrom(ByteBuffer data)static SetDefaultBranchRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<SetDefaultBranchRequest>parser()SetDefaultBranchRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CATALOG_FIELD_NUMBER
public static final int CATALOG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BRANCH_ID_FIELD_NUMBER
public static final int BRANCH_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOTE_FIELD_NUMBER
public static final int NOTE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORCE_FIELD_NUMBER
public static final int FORCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getCatalog
public String getCatalog()
Full resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
string catalog = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getCatalogin interfaceSetDefaultBranchRequestOrBuilder- Returns:
- The catalog.
-
getCatalogBytes
public 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) = { ... }- Specified by:
getCatalogBytesin interfaceSetDefaultBranchRequestOrBuilder- Returns:
- The bytes for catalog.
-
getBranchId
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.v2beta.SetDefaultBranchRequest.force] is not set, a FAILED_PRECONDITION error is returned.
string branch_id = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getBranchIdin interfaceSetDefaultBranchRequestOrBuilder- Returns:
- The branchId.
-
getBranchIdBytes
public 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.v2beta.SetDefaultBranchRequest.force] is not set, a FAILED_PRECONDITION error is returned.
string branch_id = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getBranchIdBytesin interfaceSetDefaultBranchRequestOrBuilder- Returns:
- The bytes for branchId.
-
getNote
public String getNote()
Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2beta.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;- Specified by:
getNotein interfaceSetDefaultBranchRequestOrBuilder- Returns:
- The note.
-
getNoteBytes
public com.google.protobuf.ByteString getNoteBytes()
Some note on this request, this can be retrieved by [CatalogService.GetDefaultBranch][google.cloud.retail.v2beta.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;- Specified by:
getNoteBytesin interfaceSetDefaultBranchRequestOrBuilder- Returns:
- The bytes for note.
-
getForce
public boolean getForce()
If set to true, it permits switching to a branch with [branch_id][google.cloud.retail.v2beta.SetDefaultBranchRequest.branch_id] even if it has no sufficient active products.
bool force = 4;- Specified by:
getForcein interfaceSetDefaultBranchRequestOrBuilder- Returns:
- The force.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SetDefaultBranchRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetDefaultBranchRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetDefaultBranchRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetDefaultBranchRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetDefaultBranchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetDefaultBranchRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SetDefaultBranchRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SetDefaultBranchRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SetDefaultBranchRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SetDefaultBranchRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SetDefaultBranchRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SetDefaultBranchRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SetDefaultBranchRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SetDefaultBranchRequest.Builder newBuilder()
-
newBuilder
public static SetDefaultBranchRequest.Builder newBuilder(SetDefaultBranchRequest prototype)
-
toBuilder
public SetDefaultBranchRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SetDefaultBranchRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SetDefaultBranchRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SetDefaultBranchRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<SetDefaultBranchRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SetDefaultBranchRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-