Package com.google.api.apikeys.v2
Class UpdateKeyRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
- com.google.api.apikeys.v2.UpdateKeyRequest.Builder
-
- All Implemented Interfaces:
UpdateKeyRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- UpdateKeyRequest
public static final class UpdateKeyRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder> implements UpdateKeyRequestOrBuilder
Request message for `UpdateKey` method.
Protobuf typegoogle.api.apikeys.v2.UpdateKeyRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateKeyRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UpdateKeyRequest
build()
UpdateKeyRequest
buildPartial()
UpdateKeyRequest.Builder
clear()
UpdateKeyRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
UpdateKeyRequest.Builder
clearKey()
Required.UpdateKeyRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
UpdateKeyRequest.Builder
clearUpdateMask()
The field mask specifies which fields to be updated as part of this request.UpdateKeyRequest.Builder
clone()
UpdateKeyRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Key
getKey()
Required.Key.Builder
getKeyBuilder()
Required.KeyOrBuilder
getKeyOrBuilder()
Required.com.google.protobuf.FieldMask
getUpdateMask()
The field mask specifies which fields to be updated as part of this request.com.google.protobuf.FieldMask.Builder
getUpdateMaskBuilder()
The field mask specifies which fields to be updated as part of this request.com.google.protobuf.FieldMaskOrBuilder
getUpdateMaskOrBuilder()
The field mask specifies which fields to be updated as part of this request.boolean
hasKey()
Required.boolean
hasUpdateMask()
The field mask specifies which fields to be updated as part of this request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
UpdateKeyRequest.Builder
mergeFrom(UpdateKeyRequest other)
UpdateKeyRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
UpdateKeyRequest.Builder
mergeFrom(com.google.protobuf.Message other)
UpdateKeyRequest.Builder
mergeKey(Key value)
Required.UpdateKeyRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
UpdateKeyRequest.Builder
mergeUpdateMask(com.google.protobuf.FieldMask value)
The field mask specifies which fields to be updated as part of this request.UpdateKeyRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UpdateKeyRequest.Builder
setKey(Key value)
Required.UpdateKeyRequest.Builder
setKey(Key.Builder builderForValue)
Required.UpdateKeyRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
UpdateKeyRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
UpdateKeyRequest.Builder
setUpdateMask(com.google.protobuf.FieldMask value)
The field mask specifies which fields to be updated as part of this request.UpdateKeyRequest.Builder
setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
The field mask specifies which fields to be updated as part of this request.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
clear
public UpdateKeyRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
getDefaultInstanceForType
public UpdateKeyRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public UpdateKeyRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UpdateKeyRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UpdateKeyRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
setField
public UpdateKeyRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
clearField
public UpdateKeyRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
clearOneof
public UpdateKeyRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
setRepeatedField
public UpdateKeyRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
addRepeatedField
public UpdateKeyRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
mergeFrom
public UpdateKeyRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UpdateKeyRequest.Builder>
-
mergeFrom
public UpdateKeyRequest.Builder mergeFrom(UpdateKeyRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
mergeFrom
public UpdateKeyRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UpdateKeyRequest.Builder>
- Throws:
IOException
-
hasKey
public boolean hasKey()
Required. Set the `name` field to the resource name of the API key to be updated. You can update only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasKey
in interfaceUpdateKeyRequestOrBuilder
- Returns:
- Whether the key field is set.
-
getKey
public Key getKey()
Required. Set the `name` field to the resource name of the API key to be updated. You can update only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getKey
in interfaceUpdateKeyRequestOrBuilder
- Returns:
- The key.
-
setKey
public UpdateKeyRequest.Builder setKey(Key value)
Required. Set the `name` field to the resource name of the API key to be updated. You can update only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
-
setKey
public UpdateKeyRequest.Builder setKey(Key.Builder builderForValue)
Required. Set the `name` field to the resource name of the API key to be updated. You can update only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
-
mergeKey
public UpdateKeyRequest.Builder mergeKey(Key value)
Required. Set the `name` field to the resource name of the API key to be updated. You can update only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
-
clearKey
public UpdateKeyRequest.Builder clearKey()
Required. Set the `name` field to the resource name of the API key to be updated. You can update only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
-
getKeyBuilder
public Key.Builder getKeyBuilder()
Required. Set the `name` field to the resource name of the API key to be updated. You can update only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
-
getKeyOrBuilder
public KeyOrBuilder getKeyOrBuilder()
Required. Set the `name` field to the resource name of the API key to be updated. You can update only the `display_name`, `restrictions`, and `annotations` fields.
.google.api.apikeys.v2.Key key = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getKeyOrBuilder
in interfaceUpdateKeyRequestOrBuilder
-
hasUpdateMask
public boolean hasUpdateMask()
The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: `display_name`, `restrictions`, and `annotations`. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.
.google.protobuf.FieldMask update_mask = 2;
- Specified by:
hasUpdateMask
in interfaceUpdateKeyRequestOrBuilder
- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public com.google.protobuf.FieldMask getUpdateMask()
The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: `display_name`, `restrictions`, and `annotations`. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.
.google.protobuf.FieldMask update_mask = 2;
- Specified by:
getUpdateMask
in interfaceUpdateKeyRequestOrBuilder
- Returns:
- The updateMask.
-
setUpdateMask
public UpdateKeyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: `display_name`, `restrictions`, and `annotations`. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.
.google.protobuf.FieldMask update_mask = 2;
-
setUpdateMask
public UpdateKeyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: `display_name`, `restrictions`, and `annotations`. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.
.google.protobuf.FieldMask update_mask = 2;
-
mergeUpdateMask
public UpdateKeyRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: `display_name`, `restrictions`, and `annotations`. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.
.google.protobuf.FieldMask update_mask = 2;
-
clearUpdateMask
public UpdateKeyRequest.Builder clearUpdateMask()
The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: `display_name`, `restrictions`, and `annotations`. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.
.google.protobuf.FieldMask update_mask = 2;
-
getUpdateMaskBuilder
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: `display_name`, `restrictions`, and `annotations`. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.
.google.protobuf.FieldMask update_mask = 2;
-
getUpdateMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are: `display_name`, `restrictions`, and `annotations`. If an update mask is not provided, the service treats it as an implied mask equivalent to all allowed fields that are set on the wire. If the field mask has a special value "*", the service treats it equivalent to replace all allowed mutable fields.
.google.protobuf.FieldMask update_mask = 2;
- Specified by:
getUpdateMaskOrBuilder
in interfaceUpdateKeyRequestOrBuilder
-
setUnknownFields
public final UpdateKeyRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
mergeUnknownFields
public final UpdateKeyRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateKeyRequest.Builder>
-
-