gpt4 book ai didi

com.google.gdata.client.youtube.YouTubeQuery.overwriteCustomParameter()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 00:01:31 30 4
gpt4 key购买 nike

本文整理了Java中com.google.gdata.client.youtube.YouTubeQuery.overwriteCustomParameter()方法的一些代码示例,展示了YouTubeQuery.overwriteCustomParameter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YouTubeQuery.overwriteCustomParameter()方法的具体详情如下:
包路径:com.google.gdata.client.youtube.YouTubeQuery
类名称:YouTubeQuery
方法名:overwriteCustomParameter

YouTubeQuery.overwriteCustomParameter介绍

暂无

代码示例

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets the value of the {@code lr} parameter.
 *
 * This parameters restricts the videos that are returned
 * to videos with its title, description and tags mostly
 * in the specified language.
 * It might be different from the language of the video itself.
 *
 * @param languageCode <a
 *   href="http://www.loc.gov/standards/iso639-2/php/code_list.php">
 *   ISO 639-1 2-letter language code</a>. {@code zh-Hans} for simplified
 *   chinese, {@code zh-Hant} for traditional chinese.
 */
public void setLanguageRestrict(String languageCode) {
 overwriteCustomParameter(LANGUAGE_RESTRICT, languageCode);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets the value of the {@code lr} parameter.
 *
 * This parameters restricts the videos that are returned
 * to videos with its title, description and tags mostly
 * in the specified language.
 * It might be different from the language of the video itself.
 *
 * @param languageCode <a
 *   href="http://www.loc.gov/standards/iso639-2/php/code_list.php">
 *   ISO 639-1 2-letter language code</a>. {@code zh-Hans} for simplified
 *   chinese, {@code zh-Hant} for traditional chinese.
 */
public void setLanguageRestrict(String languageCode) {
 overwriteCustomParameter(LANGUAGE_RESTRICT, languageCode);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets the value of the {@code vq} parameter.
 *
 * The {@code vq} parameter is exactly equivalent to the
 * {@code q} parameter.
 *
 * @param query query string, {@code null} to remove the parameter
 * @deprecated Please use {@link Query#setFullTextQuery()} instead.
 */
@Deprecated
public void setVideoQuery(String query) {
 overwriteCustomParameter(VQ, query);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets the value of the {@code vq} parameter.
 *
 * The {@code vq} parameter is exactly equivalent to the
 * {@code q} parameter.
 *
 * @param query query string, {@code null} to remove the parameter
 * @deprecated Please use {@link Query#setFullTextQuery()} instead.
 */
@Deprecated
public void setVideoQuery(String query) {
 overwriteCustomParameter(VQ, query);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets the value of the {@code racy} parameter.
 *
 * @param includeRacy {@code true} to include racy content, false
 *   to exclude it, {@code null} to remove the parameter
 * @deprecated Please use {@link #setSafeSearch(String)} instead.
 */
@Deprecated
public void setIncludeRacy(Boolean includeRacy) {
 String stringValue;
 if (includeRacy == null) {
  stringValue = null;
 } else {
  stringValue = includeRacy ? RACY_INCLUDE : RACY_EXCLUDE;
 }
 overwriteCustomParameter(RACY, stringValue);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets the value of the {@code racy} parameter.
 *
 * @param includeRacy {@code true} to include racy content, false
 *   to exclude it, {@code null} to remove the parameter
 * @deprecated Please use {@link #setSafeSearch(String)} instead.
 */
@Deprecated
public void setIncludeRacy(Boolean includeRacy) {
 String stringValue;
 if (includeRacy == null) {
  stringValue = null;
 } else {
  stringValue = includeRacy ? RACY_INCLUDE : RACY_EXCLUDE;
 }
 overwriteCustomParameter(RACY, stringValue);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets the value of the {@code location-radius} parameter. Format is 
 *   "100km". Valid units of measurement are "ft", "mi", "m", and "km".
 * @param locationRadius The requested search radius.
 * @throws InvalidArgumentException if the given string is not a properly
 *   formatted location radius.
 */
public void setLocationRadius(String locationRadius) {
 if (locationRadius != null && !LOCATION_RADIUS_PATTERN.matcher(locationRadius).matches()) {
  throw new IllegalArgumentException("Invalid location radius: " + locationRadius);
 }
 overwriteCustomParameter(LOCATION_RADIUS, locationRadius);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets the value of the {@code location-radius} parameter. Format is 
 *   "100km". Valid units of measurement are "ft", "mi", "m", and "km".
 * @param locationRadius The requested search radius.
 * @throws InvalidArgumentException if the given string is not a properly
 *   formatted location radius.
 */
public void setLocationRadius(String locationRadius) {
 if (locationRadius != null && !LOCATION_RADIUS_PATTERN.matcher(locationRadius).matches()) {
  throw new IllegalArgumentException("Invalid location radius: " + locationRadius);
 }
 overwriteCustomParameter(LOCATION_RADIUS, locationRadius);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets the value of the {@code orderby} parameter.
 *
 * @param orderBy value of the {@code orderby} parameter, 
 *   {@code null} to remove the parameter
 */
public void setOrderBy(OrderBy orderBy) {
 overwriteCustomParameter(ORDERBY,
   orderBy == null ? null : orderBy.toParameterValue());
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets the value of the {@code uploader} parameter.
 *
 * @param uploader value of the {@code uploader} parameter, 
 *   {@code null} to remove the parameter
 */
public void setUploader(Uploader uploader) {
 overwriteCustomParameter(UPLOADER,
   uploader == null ? null : uploader.toParameterValue());
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets the value of the {@code safeSearch} parameter.
 *
 * @param  safeSearch value of {@code safeSearch} parameter,
 *   {@code null} to remove the parameter
 */
public void setSafeSearch(SafeSearch safeSearch) {
 overwriteCustomParameter(SAFE_SEARCH,
   safeSearch == null ? null : safeSearch.toParameterValue());
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets the value of the {@code time} parameter.
 *
 * @param time time value, {@code null} to remove the parameter
 */
public void setTime(Time time) {
 overwriteCustomParameter(TIME,
   time == null ? null : time.toParameterValue());
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets the value of the {@code time} parameter.
 *
 * @param time time value, {@code null} to remove the parameter
 */
public void setTime(Time time) {
 overwriteCustomParameter(TIME,
   time == null ? null : time.toParameterValue());
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets the value of the {@code orderby} parameter.
 *
 * @param orderBy value of the {@code orderby} parameter, 
 *   {@code null} to remove the parameter
 */
public void setOrderBy(OrderBy orderBy) {
 overwriteCustomParameter(ORDERBY,
   orderBy == null ? null : orderBy.toParameterValue());
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets the value of the {@code safeSearch} parameter.
 *
 * @param  safeSearch value of {@code safeSearch} parameter,
 *   {@code null} to remove the parameter
 */
public void setSafeSearch(SafeSearch safeSearch) {
 overwriteCustomParameter(SAFE_SEARCH,
   safeSearch == null ? null : safeSearch.toParameterValue());
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets the value of the {@code uploader} parameter.
 *
 * @param uploader value of the {@code uploader} parameter, 
 *   {@code null} to remove the parameter
 */
public void setUploader(Uploader uploader) {
 overwriteCustomParameter(UPLOADER,
   uploader == null ? null : uploader.toParameterValue());
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets order by relevance with results optimized for a specific
 * language.
 *
 * @param languageCode {@code null} or <a
 *   href="http://www.loc.gov/standards/iso639-2/php/code_list.php">
 *   ISO 639-1 2-letter language code</a>. {@code zh-Hans} for simplified
 *   chinese, {@code zh-Hant} for traditional chinese.
 */
public void setOrderByRelevanceForLanguage(String languageCode) {
 overwriteCustomParameter(ORDERBY,
   languageCode == null
   ? OrderBy.RELEVANCE.toParameterValue() : "relevance_lang_" + languageCode);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets order by relevance with results optimized for a specific
 * language.
 *
 * @param languageCode {@code null} or <a
 *   href="http://www.loc.gov/standards/iso639-2/php/code_list.php">
 *   ISO 639-1 2-letter language code</a>. {@code zh-Hans} for simplified
 *   chinese, {@code zh-Hant} for traditional chinese.
 */
public void setOrderByRelevanceForLanguage(String languageCode) {
 overwriteCustomParameter(ORDERBY,
   languageCode == null
   ? OrderBy.RELEVANCE.toParameterValue() : "relevance_lang_" + languageCode);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Sets the value of the {@code location} parameter.
 * @param where A {@link com.google.gdata.data.geo.impl.GeoRssWhere} 
 *  element describing the center of where to search.
 */
public void setLocation(GeoRssWhere where) {
 
 StringBuilder location = new StringBuilder();
 
 if (where != null) {
  location.append(
    where.getLatitude()).append(",").append(where.getLongitude());
 }
 
 if (hasRestrictLocation()) {
  location.append("!");
 }
 
 overwriteCustomParameter(LOCATION,
   location.toString().equals("") ? null : location.toString());
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Sets the value of the {@code location} parameter.
 * @param where A {@link com.google.gdata.data.geo.impl.GeoRssWhere} 
 *  element describing the center of where to search.
 */
public void setLocation(GeoRssWhere where) {
 
 StringBuilder location = new StringBuilder();
 
 if (where != null) {
  location.append(
    where.getLatitude()).append(",").append(where.getLongitude());
 }
 
 if (hasRestrictLocation()) {
  location.append("!");
 }
 
 overwriteCustomParameter(LOCATION,
   location.toString().equals("") ? null : location.toString());
}

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com